loop: No need to initialize ->queue_lock explicitly before calling blk_cleanup_queue()
authorVivek Goyal <vgoyal@redhat.com>
Thu, 3 Mar 2011 00:04:50 +0000 (19:04 -0500)
committerJens Axboe <jaxboe@fusionio.com>
Thu, 3 Mar 2011 00:06:49 +0000 (19:06 -0500)
commitcd25f54961273c2e4cbd47441e04832468382a5e
tree1c0e0442ce87000c2f24d13892aea3371b056153
parentc94a96ac93b4f5b8d1ff8430b1afa1a25610cf53
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>
drivers/block/loop.c