]> www.infradead.org Git - users/dwmw2/linux.git/commit
nvme: add rotational support
authorWang Yugui <wangyugui@e16-tech.com>
Thu, 10 Oct 2024 12:39:50 +0000 (14:39 +0200)
committerKeith Busch <kbusch@kernel.org>
Mon, 11 Nov 2024 17:49:50 +0000 (09:49 -0800)
commit1d811438851bae0d5593a9ecc0736db4b3c6d994
treecb873442b735f858e5cda31b4853fd50978988fc
parentee9f36db1f2fbd2ad304c0875415c598a2644e73
nvme: add rotational support

Rotational devices, such as hard-drives, can be detected using
the rotational bit in the namespace independent identify namespace
data structure. Make the bit visible to the block layer through the
rotational queue setting.

Signed-off-by: Wang Yugui <wangyugui@e16-tech.com>
Reviewed-by: Matias Bjørling <matias.bjorling@wdc.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/core.c
drivers/nvme/host/nvme.h