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 05:36:56 +0000 (07:36 +0200)
commitac2ff946a53e7bd0ae98f4e5d1d6c1b1dced82e5
treeab50d2e1bcf5c76bb9e018839d77ff531e7e4c83
parentce8a7424d23a36f043d0de8484f888971c831119
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