[PATCH] amplc_dio200 - don't call comedi_event

Hi,

I think it's probably a bad idea for my amplc_dio200 driver to call 
comedi_event() while it's holding a spinlock.  The call to comedi_event 
could call a kcomedilib client's callback function, which might do 
something that requires the same spinlock, leading to a deadlock.

The attached patch moves the calls to comedi_event() to a safe point 
after the spinlock is released.

-- 
-=( Ian Abbott _at_ MEV Ltd.    E-mail: <abbotti_at_mev.co.uk>        )=-
-=( Tel: +44 (0)161 477 1898   FAX: +44 (0)161 718 3587         )=-

Received on 2005-02-24Z15:06:56