]> git.baikalelectronics.ru Git - kernel.git/commit
as-iosched: fix inconsistent ioc->lock context
authorJens Axboe <jens.axboe@oracle.com>
Fri, 1 Feb 2008 08:44:28 +0000 (09:44 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 1 Feb 2008 08:44:28 +0000 (09:44 +0100)
commitd0710d232e36d738bddaeb2fd2afed62629d9532
treecbf07985c3396417932002be5cd5e4f2c47433e9
parent075463c1efbdaa47dac463246162f3bfcd764afc
as-iosched: fix inconsistent ioc->lock context

Since it's acquired from irq context, all locking must be of the
irq safe variant. Most are already inside the queue lock (which
already disables interrupts), but the io scheduler rmmod path
always has irqs enabled and the put_io_context() path may legally
be called with irqs enabled (even if it isn't usually). So fixup
those two.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/as-iosched.c