]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] blk_start_queue() must be called with irq disabled - add warning
authorPaolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Mon, 5 Jun 2006 10:09:01 +0000 (12:09 +0200)
committerJens Axboe <axboe@nelson.home.kernel.dk>
Fri, 23 Jun 2006 15:10:38 +0000 (17:10 +0200)
commitf105ca020e9ef748f72e94524801cb2c08ceb8d8
tree15b311da1a9aa36b24f98ae914456ecb90e247f3
parent1f3fc55d35a6edf9c3ba961f18a975889b6d4041
[PATCH] blk_start_queue() must be called with irq disabled - add warning

The queue lock can be taken from interrupts so it must always be taken with
irq disabling primitives.  Some primitives already verify this.
blk_start_queue() is called under this lock, so interrupts must be
disabled.

Also document this requirement clearly in blk_init_queue(), where the queue
spinlock is set.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Jens Axboe <axboe@suse.de>
block/ll_rw_blk.c