mg_disk: fix queue hang / infinite retry on !fs requests
authorTejun Heo <tj@kernel.org>
Fri, 8 May 2009 02:54:00 +0000 (11:54 +0900)
committerJens Axboe <jens.axboe@oracle.com>
Mon, 11 May 2009 07:52:14 +0000 (09:52 +0200)
commit9a8d23d8855e554fc5887f14cb008b55c4300ccc
treea754cec4066df52f94161784262edff0de0fb312
parent8f6205cd572fece673da0255d74843680f67f879
mg_disk: fix queue hang / infinite retry on !fs requests

Both request functions in mg_disk simply return when they encounter a
!fs request, which means the request will never be cleared from the
queue causing queue hang and indefinite retry of the request.  Fix it.

While at it, flatten condition checks and add unlikely to !fs tests.

[ Impact: fix possible queue hang / infinite retry of !fs requests ]

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