summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJens Axboe <axboe@suse.de>2006-07-28 09:26:13 +0200
committerJens Axboe <axboe@nelson.home.kernel.dk>2006-09-30 20:27:00 +0200
commit9e2585a8a23f3a42f815b2a638725d85a921cd65 (patch)
tree6c318a746596ea8523ccf07aaa270cf4295cf50e /include
parentd4f2f4629ea6a003cd021a9ea1a8a23ec0cd70ac (diff)
[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')
-rw-r--r--include/linux/blkdev.h5
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)