aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
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 {
531 531
532#define rq_data_dir(rq) ((rq)->cmd_flags & 1) 532#define rq_data_dir(rq) ((rq)->cmd_flags & 1)
533 533
534/*
535 * We regard a request as sync, if it's a READ or a SYNC write.
536 */
537#define rq_is_sync(rq) (rq_data_dir((rq)) == READ || (rq)->cmd_flags & REQ_RW_SYNC)
538
534static inline int blk_queue_full(struct request_queue *q, int rw) 539static inline int blk_queue_full(struct request_queue *q, int rw)
535{ 540{
536 if (rw == READ) 541 if (rw == READ)