summaryrefslogtreecommitdiffstats
path: root/include/linux/blkdev.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2014-05-06 12:12:45 +0200
committerJens Axboe <axboe@fb.com>2014-05-09 08:43:49 -0600
commitaf76e555e5e29e08eb8ac1f7878e23dbf0d6741f (patch)
treef583d3360eebfb37413f5e8e350c146bac591ada /include/linux/blkdev.h
parent9fccfed8f0cad9b79575a87c45d6f5f6ee05bb66 (diff)
downloadtalos-op-linux-af76e555e5e29e08eb8ac1f7878e23dbf0d6741f.tar.gz
talos-op-linux-af76e555e5e29e08eb8ac1f7878e23dbf0d6741f.zip
blk-mq: initialize struct request fields individually
This allows us to avoid a non-atomic memset over ->atomic_flags as well as killing lots of duplicate initializations. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'include/linux/blkdev.h')
-rw-r--r--include/linux/blkdev.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index 20b26d4e53a2..94b27210641b 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -90,9 +90,10 @@ enum rq_cmd_type_bits {
#define BLK_MAX_CDB 16
/*
- * try to put the fields that are referenced together in the same cacheline.
- * if you modify this structure, be sure to check block/blk-core.c:blk_rq_init()
- * as well!
+ * Try to put the fields that are referenced together in the same cacheline.
+ *
+ * If you modify this structure, make sure to update blk_rq_init() and
+ * especially blk_mq_rq_ctx_init() to take care of the added fields.
*/
struct request {
struct list_head queuelist;
OpenPOWER on IntegriCloud