From c04e456f877e2d7b40e316dc86b00820faf80751 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Sun, 18 Jan 2004 18:56:07 -0800 Subject: [PATCH] Use request_list as indicator that req originated from ll_rw_blk From: Mike Christie , Jens Axboe 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. --- include/linux/blkdev.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/linux') 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); } -- cgit v1.2.3