diff options
author | Paul Reioux <reioux@gmail.com> | 2013-04-28 13:17:12 -0500 |
---|---|---|
committer | Ziyan <jaraidaniel@gmail.com> | 2016-01-08 10:43:01 +0100 |
commit | aea0d63eed9227a15fcc48aa55da7f7027cf7f79 (patch) | |
tree | 35574a6179d1194fb2d5efc25264f293a2460645 | |
parent | 64e9529ff6dbf1f31db431ea63b27ed778602327 (diff) | |
download | kernel_samsung_tuna-aea0d63eed9227a15fcc48aa55da7f7027cf7f79.zip kernel_samsung_tuna-aea0d63eed9227a15fcc48aa55da7f7027cf7f79.tar.gz kernel_samsung_tuna-aea0d63eed9227a15fcc48aa55da7f7027cf7f79.tar.bz2 |
block: add REQ_URGENT to request flags
This patch adds a new flag to be used in cmd_flags field of struct request
for marking request as urgent.
Urgent request is the one that should be given priority currently handled
(regular) request by the device driver. The decision of a request urgency
is taken by the scheduler.
Change-Id: Ic20470987ef23410f1d0324f96f00578f7df8717
Signed-off-by: Tatyana Brokhman <tlinder@codeaurora.org>
modified for tuna hybrid
Signed-off-by: Paul Reioux <reioux@gmail.com>
-rw-r--r-- | include/linux/blk_types.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/blk_types.h b/include/linux/blk_types.h index c1dcea9..cb7b091 100644 --- a/include/linux/blk_types.h +++ b/include/linux/blk_types.h @@ -131,7 +131,7 @@ enum rq_flag_bits { * throttling rules. Don't do it again. */ /* request only flags */ - __REQ_SORTED, /* elevator knows about this request */ + __REQ_SORTED = __REQ_RAHEAD, /* elevator knows about this request */ __REQ_SOFTBARRIER, /* may not be passed by ioscheduler */ __REQ_FUA, /* forced unit access */ __REQ_NOMERGE, /* don't touch this for merging */ @@ -149,6 +149,7 @@ enum rq_flag_bits { __REQ_IO_STAT, /* account I/O stat */ __REQ_MIXED_MERGE, /* merge of different types, fail separately */ __REQ_SECURE, /* secure discard (used with __REQ_DISCARD) */ + __REQ_URGENT, /* urgent request */ __REQ_NR_BITS, /* stops here */ }; @@ -160,6 +161,7 @@ enum rq_flag_bits { #define REQ_META (1 << __REQ_META) #define REQ_PRIO (1 << __REQ_PRIO) #define REQ_DISCARD (1 << __REQ_DISCARD) +#define REQ_URGENT (1 << __REQ_URGENT) #define REQ_NOIDLE (1 << __REQ_NOIDLE) #define REQ_FAILFAST_MASK \ |