diff options
| author | Alexander Viro <viro@math.psu.edu> | 2002-06-11 00:56:24 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2002-06-11 00:56:24 -0700 |
| commit | 4fe6433a5d9e84aaa0253c344bf3cc3f8653a06f (patch) | |
| tree | 034cac16815974a8a013ec86c0c03d6222f39333 /include | |
| parent | 718e92c527026a43b483577b2ef7804bfdd31fb6 (diff) | |
[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.
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/blk.h | 6 |
1 files changed, 2 insertions, 4 deletions
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)); |
