diff options
author | Jens Axboe <axboe@suse.de> | 2006-07-28 09:26:13 +0200 |
---|---|---|
committer | Jens Axboe <axboe@nelson.home.kernel.dk> | 2006-09-30 20:27:00 +0200 |
commit | 9e2585a8a23f3a42f815b2a638725d85a921cd65 (patch) | |
tree | 6c318a746596ea8523ccf07aaa270cf4295cf50e /include/linux/blkdev.h | |
parent | d4f2f4629ea6a003cd021a9ea1a8a23ec0cd70ac (diff) | |
download | linux-3.10-9e2585a8a23f3a42f815b2a638725d85a921cd65.tar.gz linux-3.10-9e2585a8a23f3a42f815b2a638725d85a921cd65.tar.bz2 linux-3.10-9e2585a8a23f3a42f815b2a638725d85a921cd65.zip |
[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 a905c4934a5..55ef6efe3eb 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) |