]> www.infradead.org Git - users/hch/misc.git/commit
null_blk: Add rotational feature support
authorDamien Le Moal <dlemoal@kernel.org>
Tue, 26 Nov 2024 00:09:56 +0000 (09:09 +0900)
committerJens Axboe <axboe@kernel.dk>
Mon, 16 Dec 2024 13:58:30 +0000 (06:58 -0700)
commitb170a04f907f02ae3fc7da265d7e49a818bf50ea
tree5f7656bcbf2f47d722876155952fca23e9642f41
parent62c5f7dfce6d4aa4bf9cf2dc470c4f6d2b3db884
null_blk: Add rotational feature support

To facilitate testing of kernel functions related to the rotational
feature (BLK_FEAT_ROTATIONAL) of a block device (e.g. NVMe rotational
bit support), add the rotational boolean configfs attribute and module
parameter to the null_blk driver. If set, a null block device will
report being a rotational device through it queue limits features with
the BLK_FEAT_ROTATIONAL flag.

Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Link: https://lore.kernel.org/r/20241126000956.95983-1-dlemoal@kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/null_blk/main.c
drivers/block/null_blk/null_blk.h