Re: Fix deadlock in cad_down()

2022-03-02 Thread Visa Hankala
On Wed, Mar 02, 2022 at 12:11:30PM +0100, Mark Kettenis wrote: > > Date: Wed, 2 Mar 2022 10:53:54 + > > From: Visa Hankala > > > > Holding NET_LOCK() while invoking a taskq barrier can result in > > a deadlock because the lock can prevent the taskq from making progress. > > Avoid this

Re: Fix deadlock in cad_down()

2022-03-02 Thread Mark Kettenis
> Date: Wed, 2 Mar 2022 10:53:54 + > From: Visa Hankala > > Holding NET_LOCK() while invoking a taskq barrier can result in > a deadlock because the lock can prevent the taskq from making progress. > Avoid this problem in cad_down() by serializing the driver's ioctl > handler with an rwlock