]> git.baikalelectronics.ru Git - kernel.git/commit
block: move q->unplug_work initialization
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Thu, 16 Oct 2008 11:44:57 +0000 (13:44 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 17 Oct 2008 06:46:57 +0000 (08:46 +0200)
commit9601acf1327b828d92a91fdee406ad41baed803a
treee94cae4cb7d6d8bee404feb869bceee74b402f93
parent4425d7381d510b140f298d24dcf5b35da7132f6d
block: move q->unplug_work initialization

modprobe loop; rmmod loop effectively creates a blk_queue and destroys it
which results in q->unplug_work being canceled without it ever being
initialized.

Therefore, move the initialization of q->unplug_work from
blk_queue_make_request() to blk_alloc_queue*().

Reported-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/blk-core.c
block/blk-settings.c