linux/arch/um
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
..
configs um: Fix hostaudio build errors 2023-08-19 23:30:22 +02:00
drivers block: move the nonrot flag to queue_limits 2024-06-19 07:58:28 -06:00
include This pull request contains the following changes for UML: 2024-05-25 13:17:48 -07:00
kernel This pull request contains the following changes for UML: 2024-05-25 13:17:48 -07:00
os-Linux um: Add an internal header shared among the user code 2024-04-30 14:16:44 +02:00
scripts um: prevent user code in modules 2023-04-20 23:06:38 +02:00
.gitignore
Kbuild um: use obj-y to descend into arch/um/*/ 2023-08-26 22:41:34 +02:00
Kconfig arch: define CONFIG_PAGE_SIZE_*KB on all architectures 2024-03-06 19:29:09 +01:00
Kconfig.debug
Makefile um: Makefile: use bash from the environment 2024-04-22 22:17:29 +02:00
Makefile-os-Linux
Makefile-skas arch: um: Add Clang coverage support 2024-01-05 00:30:35 +01:00