mg_disk: fix locking
authorTejun Heo <tj@kernel.org>
Tue, 28 Apr 2009 03:38:32 +0000 (12:38 +0900)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 28 Apr 2009 18:24:19 +0000 (20:24 +0200)
commit39f36b47caae1443eb37c34c6def108bb79f8d25
treeffa4b5b23d0a3ebd963ba2fdecd594745075f680
parent27b1833279995e7c290a40cac4ef36ccea7e9283
mg_disk: fix locking

IRQ and timeout handlers call functions which expect locked queue lock
without locking it.  Fix it.

While at it, convert 0s used as null pointer constant to NULLs.

[ Impact: fix locking, cleanup ]

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: unsik Kim <donari75@gmail.com>
drivers/block/mg_disk.c