block: always assign default lock to queues
authorJens Axboe <jens.axboe@oracle.com>
Tue, 28 Jul 2009 07:07:29 +0000 (09:07 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 28 Jul 2009 07:07:29 +0000 (09:07 +0200)
commita4e7d46407d73f35d217013b363b79a8f8eafcaa
tree109996edac0c6382e7a7cfb99736e75ea5398b49
parenta85a00a699740f6f9863f88aef22060fe1534681
block: always assign default lock to queues

Move the assignment of a default lock below blk_init_queue() to
blk_queue_make_request(), so we also get to set the default lock
for ->make_request_fn() based drivers. This is important since the
queue flag locking requires a lock to be in place.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/blk-core.c
block/blk-settings.c