From: Matias Bjørling <matias.bjorling@xxxxxxx>Reviewed-by: Hannes Reinecke <hare@xxxxxxx>
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.
Note that rotational devices typically can be used to generate random
entropy, the device is therefore also added as a block device that adds
entropy.
Signed-off-by: Matias Bjørling <matias.bjorling@xxxxxxx>
---
drivers/nvme/host/core.c | 5 +++++
include/linux/nvme.h | 1 +
2 files changed, 6 insertions(+)