hd: clean up request completion paths
authorTejun Heo <tj@kernel.org>
Tue, 28 Apr 2009 04:06:11 +0000 (13:06 +0900)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 28 Apr 2009 06:14:51 +0000 (08:14 +0200)
commite091eb67af957bac4e4f7410c5d1aa263ee483a4
tree2be45bf08417bb1e2159f0a7519e9c79ac7d5a8f
parentf81f2f7c9fee307e371f37424577d46f9eaf8692
hd: clean up request completion paths

hd read/write_intr() functions manually manipulate request to
incrementally complete it, which block layer already supports.  Simply
use block layer completion routines instead of manual partial
completion.

While at it, clear unnecessary elv_next_request() check at the tail of
read_intr().  This also makes read and write_intr() more consistent.

[ Impact: cleanup ]

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
drivers/block/hd.c