diff options
author | Vivek Goyal <vgoyal@redhat.com> | 2011-03-02 19:04:50 -0500 |
---|---|---|
committer | Jens Axboe <jaxboe@fusionio.com> | 2011-03-02 19:06:49 -0500 |
commit | cd25f54961273c2e4cbd47441e04832468382a5e (patch) | |
tree | 1c0e0442ce87000c2f24d13892aea3371b056153 /drivers/block/loop.c | |
parent | c94a96ac93b4f5b8d1ff8430b1afa1a25610cf53 (diff) | |
download | op-kernel-dev-cd25f54961273c2e4cbd47441e04832468382a5e.zip op-kernel-dev-cd25f54961273c2e4cbd47441e04832468382a5e.tar.gz |
loop: No need to initialize ->queue_lock explicitly before calling blk_cleanup_queue()
Now we initialize ->queue_lock at queue allocation time so driver does
not have to worry about initializing it before calling
blk_cleanup_queue().
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'drivers/block/loop.c')
-rw-r--r-- | drivers/block/loop.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/block/loop.c b/drivers/block/loop.c index 49e6a54..44e18c0 100644 --- a/drivers/block/loop.c +++ b/drivers/block/loop.c @@ -1641,9 +1641,6 @@ out: static void loop_free(struct loop_device *lo) { - if (!lo->lo_queue->queue_lock) - lo->lo_queue->queue_lock = &lo->lo_queue->__queue_lock; - blk_cleanup_queue(lo->lo_queue); put_disk(lo->lo_disk); list_del(&lo->lo_list); |