diff options
author | Jens Axboe <axboe@suse.de> | 2006-07-28 11:26:13 +0400 |
---|---|---|
committer | Jens Axboe <axboe@nelson.home.kernel.dk> | 2006-09-30 22:27:00 +0400 |
commit | 9e2585a8a23f3a42f815b2a638725d85a921cd65 (patch) | |
tree | 6c318a746596ea8523ccf07aaa270cf4295cf50e /include/linux/blkdev.h | |
parent | d4f2f4629ea6a003cd021a9ea1a8a23ec0cd70ac (diff) | |
download | linux-9e2585a8a23f3a42f815b2a638725d85a921cd65.tar.xz |
[PATCH] as-iosched: remove arq->is_sync member
We can track this in struct request.
Signed-off-by: Jens Axboe <axboe@suse.de>
Signed-off-by: Nick Piggin <npiggin@suse.de>
Diffstat (limited to 'include/linux/blkdev.h')
-rw-r--r-- | include/linux/blkdev.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index a905c4934a55..55ef6efe3eb5 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -531,6 +531,11 @@ enum { #define rq_data_dir(rq) ((rq)->cmd_flags & 1) +/* + * We regard a request as sync, if it's a READ or a SYNC write. + */ +#define rq_is_sync(rq) (rq_data_dir((rq)) == READ || (rq)->cmd_flags & REQ_RW_SYNC) + static inline int blk_queue_full(struct request_queue *q, int rw) { if (rw == READ) |