Re: [PATCH] aio: Fix locking in aio_poll()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Feb 04, 2019 at 09:45:55AM -0800, Bart Van Assche wrote:
> Since kioctx.ctx_lock may be acquired from IRQ context, all code that
> acquires that lock from thread context must disable interrupts. This
> patch fixes the following lockdep complaint:

But breaks the real life users of this interface :(

aio_poll_wake is assigned as the wake function to a waitqueue,
and the waitqueue interface requires that function to be called
with irqs disabled.  It looks like the fuse code is breaking that
contract, so we need to fix that instead of disable irqs.



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux