diff options
| author | Andrew Morton <akpm@osdl.org> | 2004-01-18 18:56:07 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.osdl.org> | 2004-01-18 18:56:07 -0800 |
| commit | c04e456f877e2d7b40e316dc86b00820faf80751 (patch) | |
| tree | 6fa87352d9f1ea82ae2a8728de05ea2e3b171f30 /include/linux | |
| parent | a7d9a66e12e8098300123ac0481cd9ee9703bee7 (diff) | |
[PATCH] Use request_list as indicator that req originated from ll_rw_blk
From: Mike Christie <michaelc@cs.wisc.edu>,
Jens Axboe <axboe@suse.de>
It's cleaner and more correct to look at req->rl to determine whether this
request got from the block layer requests lists instead of using req->q.
It's handy to always have req->q available, to lookup the queue from the
request.
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/blkdev.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index f90e9ac25738..a1c5cd076331 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -541,7 +541,7 @@ static inline void blkdev_dequeue_request(struct request *req) list_del_init(&req->queuelist); - if (req->q) + if (req->rl) elv_remove_request(req->q, req); } |
