diff options
author | Jens Axboe <jens.axboe@oracle.com> | 2009-07-28 03:07:29 -0400 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2009-07-28 03:07:29 -0400 |
commit | a4e7d46407d73f35d217013b363b79a8f8eafcaa (patch) | |
tree | 109996edac0c6382e7a7cfb99736e75ea5398b49 /block/blk-core.c | |
parent | a85a00a699740f6f9863f88aef22060fe1534681 (diff) |
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>
Diffstat (limited to 'block/blk-core.c')
-rw-r--r-- | block/blk-core.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/block/blk-core.c b/block/blk-core.c index 4b45435c6eaf..a0c340d239b0 100644 --- a/block/blk-core.c +++ b/block/blk-core.c | |||
@@ -575,13 +575,6 @@ blk_init_queue_node(request_fn_proc *rfn, spinlock_t *lock, int node_id) | |||
575 | return NULL; | 575 | return NULL; |
576 | } | 576 | } |
577 | 577 | ||
578 | /* | ||
579 | * if caller didn't supply a lock, they get per-queue locking with | ||
580 | * our embedded lock | ||
581 | */ | ||
582 | if (!lock) | ||
583 | lock = &q->__queue_lock; | ||
584 | |||
585 | q->request_fn = rfn; | 578 | q->request_fn = rfn; |
586 | q->prep_rq_fn = NULL; | 579 | q->prep_rq_fn = NULL; |
587 | q->unplug_fn = generic_unplug_device; | 580 | q->unplug_fn = generic_unplug_device; |