From 4fe6433a5d9e84aaa0253c344bf3cc3f8653a06f Mon Sep 17 00:00:00 2001 From: Alexander Viro Date: Tue, 11 Jun 2002 00:56:24 -0700 Subject: [PATCH] (14/14) resync end_request(int) turned to end_request(req, int); all old callers are converted to end_request(CURRENT, value). Now we can start killing CURRENT/QUEUE - end_request() was the last obstacle to that. --- include/linux/blk.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'include/linux') diff --git a/include/linux/blk.h b/include/linux/blk.h index 1606f78a5f59..69aa2fa94a97 100644 --- a/include/linux/blk.h +++ b/include/linux/blk.h @@ -114,11 +114,9 @@ extern inline struct request *elv_next_request(request_queue_t *q) * If we have our own end_request, we do not want to include this mess */ #ifndef LOCAL_END_REQUEST -static inline void end_request(int uptodate) +static inline void end_request(struct request *req, int uptodate) { - struct request *req = CURRENT; - - if (end_that_request_first(req, uptodate, CURRENT->hard_cur_sectors)) + if (end_that_request_first(req, uptodate, req->hard_cur_sectors)) return; add_blkdev_randomness(major(req->rq_dev)); -- cgit v1.2.3