Commit 66311274691ec65972cad3626057fa8d00c146d8
Committed by
Jens Axboe
1 parent
a937536b86
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
block: add a flag to identify PM request
Add a flag REQ_PM to identify the request is PM related, such requests will not change the device request queue's runtime status. It is intended to be used in driver's runtime PM callback, so that driver can perform some IO to the device there with the queue's runtime status unaffected. e.g. in SCSI disk's runtime suspend callback, the disk will be put into stopped power state, and this require sending a command to the device. Such command processing should not change the disk's runtime status. Signed-off-by: Lin Ming <ming.m.lin@intel.com> Signed-off-by: Aaron Lu <aaron.lu@intel.com> Acked-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff
include/linux/blk_types.h
... | ... | @@ -175,6 +175,7 @@ |
175 | 175 | __REQ_IO_STAT, /* account I/O stat */ |
176 | 176 | __REQ_MIXED_MERGE, /* merge of different types, fail separately */ |
177 | 177 | __REQ_KERNEL, /* direct IO to kernel pages */ |
178 | + __REQ_PM, /* runtime pm request */ | |
178 | 179 | __REQ_NR_BITS, /* stops here */ |
179 | 180 | }; |
180 | 181 | |
... | ... | @@ -223,6 +224,7 @@ |
223 | 224 | #define REQ_MIXED_MERGE (1 << __REQ_MIXED_MERGE) |
224 | 225 | #define REQ_SECURE (1 << __REQ_SECURE) |
225 | 226 | #define REQ_KERNEL (1 << __REQ_KERNEL) |
227 | +#define REQ_PM (1 << __REQ_PM) | |
226 | 228 | |
227 | 229 | #endif /* __LINUX_BLK_TYPES_H */ |