diff options
author | Ming Lei <ming.lei@redhat.com> | 2021-10-12 13:12:23 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-10-18 14:17:36 +0200 |
commit | 19416123ab3e1348b3532347af221d8f60838431 (patch) | |
tree | 397577056c7e19755c43e93d1475c16de469e09d /drivers/md/bcache/request.h | |
parent | block: use SLAB_TYPESAFE_BY_RCU for the bio slab (diff) | |
download | linux-19416123ab3e1348b3532347af221d8f60838431.tar.xz linux-19416123ab3e1348b3532347af221d8f60838431.zip |
block: define 'struct bvec_iter' as packed
'struct bvec_iter' is embedded into 'struct bio', define it as packed
so that we can get one extra 4bytes for other uses without expanding
bio.
'struct bvec_iter' is often allocated on stack, so making it packed
doesn't affect performance. Also I have run io_uring on both
nvme/null_blk, and not observe performance effect in this way.
Suggested-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Tested-by: Mark Wunderlich <mark.wunderlich@intel.com>
Link: https://lore.kernel.org/r/20211012111226.760968-14-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md/bcache/request.h')
0 files changed, 0 insertions, 0 deletions