diff options
author | Jens Axboe <axboe@fb.com> | 2014-05-19 09:17:48 -0600 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2014-05-19 11:02:47 -0600 |
commit | e93ecf602beb8439f0bdcc1fa2cbc1f31fdfb8e2 (patch) | |
tree | 030ba8a90d4ebf1f9cd5d546066d12037402eda1 /block/blk-mq.h | |
parent | 2667bcbbd5ed71f29b78ba69f059dbc450e07faf (diff) | |
download | talos-obmc-linux-e93ecf602beb8439f0bdcc1fa2cbc1f31fdfb8e2.tar.gz talos-obmc-linux-e93ecf602beb8439f0bdcc1fa2cbc1f31fdfb8e2.zip |
blk-mq: move the cache friendly bitmap type of out blk-mq-tag
We will use it for the pending list in blk-mq core as well.
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/blk-mq.h')
-rw-r--r-- | block/blk-mq.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/block/blk-mq.h b/block/blk-mq.h index 97cfab9c092f..5e5a378962b7 100644 --- a/block/blk-mq.h +++ b/block/blk-mq.h @@ -52,4 +52,13 @@ void blk_mq_disable_hotplug(void); extern unsigned int *blk_mq_make_queue_map(struct blk_mq_tag_set *set); extern int blk_mq_update_queue_map(unsigned int *map, unsigned int nr_queues); +/* + * Basic implementation of sparser bitmap, allowing the user to spread + * the bits over more cachelines. + */ +struct blk_align_bitmap { + unsigned long word; + unsigned long depth; +} ____cacheline_aligned_in_smp; + #endif |