diff options
Diffstat (limited to 'include/linux/blkdev.h')
-rw-r--r-- | include/linux/blkdev.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index f3fff8bf85ee..d483c494672a 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h | |||
@@ -1209,9 +1209,27 @@ static inline void set_io_start_time_ns(struct request *req) | |||
1209 | { | 1209 | { |
1210 | req->io_start_time_ns = sched_clock(); | 1210 | req->io_start_time_ns = sched_clock(); |
1211 | } | 1211 | } |
1212 | |||
1213 | static inline uint64_t rq_start_time_ns(struct request *req) | ||
1214 | { | ||
1215 | return req->start_time_ns; | ||
1216 | } | ||
1217 | |||
1218 | static inline uint64_t rq_io_start_time_ns(struct request *req) | ||
1219 | { | ||
1220 | return req->io_start_time_ns; | ||
1221 | } | ||
1212 | #else | 1222 | #else |
1213 | static inline void set_start_time_ns(struct request *req) {} | 1223 | static inline void set_start_time_ns(struct request *req) {} |
1214 | static inline void set_io_start_time_ns(struct request *req) {} | 1224 | static inline void set_io_start_time_ns(struct request *req) {} |
1225 | static inline uint64_t rq_start_time_ns(struct request *req) | ||
1226 | { | ||
1227 | return 0; | ||
1228 | } | ||
1229 | static inline uint64_t rq_io_start_time_ns(struct request *req) | ||
1230 | { | ||
1231 | return 0; | ||
1232 | } | ||
1215 | #endif | 1233 | #endif |
1216 | 1234 | ||
1217 | #define MODULE_ALIAS_BLOCKDEV(major,minor) \ | 1235 | #define MODULE_ALIAS_BLOCKDEV(major,minor) \ |