diff options
author | Tejun Heo <tj@kernel.org> | 2009-05-08 06:54:01 +0400 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2009-05-11 11:52:15 +0400 |
commit | 5b36ad6000ddea390aca3c3b67ead7616ace2ffc (patch) | |
tree | dedca03fffd6729487fbd9bc3959428038e0cdfb /drivers/block/hd.c | |
parent | 9a8d23d8855e554fc5887f14cb008b55c4300ccc (diff) | |
download | linux-5b36ad6000ddea390aca3c3b67ead7616ace2ffc.tar.xz |
mg_disk: dequeue and track in-flight request
mg_disk has at most single request in flight per device. Till now,
whenever it needs to access the in-flight request it called
elv_next_request(). This patch makes mg_disk track the in-flight
request directly using mg_host->req and dequeue it when processing
starts.
q->queuedata is set to mg_host so that mg_host can be determined
without fetching request from the queue.
[ Impact: dequeue in-flight request, one elv_next_request() per request ]
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: unsik Kim <donari75@gmail.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'drivers/block/hd.c')
0 files changed, 0 insertions, 0 deletions