linux/drivers/nvdimm
Christoph Hellwig bd4a633b6f block: move the nonrot flag to queue_limits
Move the nonrot flag into the queue_limits feature field so that it can
be set atomically with the queue frozen.

Use the chance to switch to defaulting to non-rotational and require
the driver to opt into rotational, which matches the polarity of the
sysfs interface.

For the z2ram, ps3vram, 2x memstick, ubiblock and dcssblk the new
rotational flag is not set as they clearly are not rotational despite
this being a behavior change.  There are some other drivers that
unconditionally set the rotational flag to keep the existing behavior
as they arguably can be used on rotational devices even if that is
probably not their main use today (e.g. virtio_blk and drbd).

The flag is automatically inherited in blk_stack_limits matching the
existing behavior in dm and md.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Link: https://lore.kernel.org/r/20240617060532.127975-15-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2024-06-19 07:58:28 -06:00
..
badrange.c
btt_devs.c
btt.c block: move the nonrot flag to queue_limits 2024-06-19 07:58:28 -06:00
btt.h
bus.c nvdimm: make nvdimm_bus_type const 2024-02-12 15:04:21 -07:00
claim.c
core.c nvdimm: remove nd_integrity_init 2024-04-25 12:37:12 -07:00
dax_devs.c
dimm_devs.c
dimm.c
e820.c
Kconfig libnvdimm: Fix ACPI_NFIT in BLK_DEV_PMEM help 2024-02-12 14:32:25 -07:00
label.c
label.h
Makefile
namespace_devs.c nvdimm/namespace: fix kernel-doc for function params 2024-01-03 12:21:36 -08:00
nd_perf.c
nd_virtio.c
nd-core.h
nd.h nvdimm: remove nd_integrity_init 2024-04-25 12:37:12 -07:00
of_pmem.c
pfn_devs.c
pfn.h
pmem.c block: move the nonrot flag to queue_limits 2024-06-19 07:58:28 -06:00
pmem.h
region_devs.c
region.c
security.c
virtio_pmem.c nvdimm: virtio_pmem: drop owner assignment 2024-05-22 08:31:18 -04:00
virtio_pmem.h