linux/drivers/s390/block
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
..
dasd_3990_erp.c s390/dasd: use new address translation helpers 2024-03-13 09:23:46 +01:00
dasd_alias.c s390/dasd: use new address translation helpers 2024-03-13 09:23:46 +01:00
dasd_devmap.c s390/dasd: Remove PRINTK_HEADER and KMSG_COMPONENT definitions 2024-02-08 10:12:01 -07:00
dasd_diag.c dasd: move queue setup to common code 2024-03-06 08:27:00 -07:00
dasd_diag.h
dasd_eckd.c scsi: block: Remove now unused queue limits helpers 2024-04-12 06:32:01 -04:00
dasd_eckd.h s390/dasd: add device ping attribute 2022-09-21 08:32:51 -06:00
dasd_eer.c s390/dasd: use new address translation helpers 2024-03-13 09:23:46 +01:00
dasd_erp.c s390/dasd: Remove PRINTK_HEADER and KMSG_COMPONENT definitions 2024-02-08 10:12:01 -07:00
dasd_fba.c s390/cio,idal: fix virtual vs physical address confusion 2024-03-13 09:23:47 +01:00
dasd_fba.h s390/dasd: fix typo in copyright statement 2019-12-20 11:52:01 -07:00
dasd_genhd.c block: move the nonrot flag to queue_limits 2024-06-19 07:58:28 -06:00
dasd_int.h for-6.9/block-20240310 2024-03-11 11:43:44 -07:00
dasd_ioctl.c dasd_format(): killing the last remaining user of ->bd_inode 2024-05-03 02:36:56 -04:00
dasd_proc.c s390/dasd: Remove PRINTK_HEADER and KMSG_COMPONENT definitions 2024-02-08 10:12:01 -07:00
dasd.c s390/dasd: use new address translation helpers 2024-03-13 09:23:46 +01:00
dcssblk.c more s390 updates for 6.9 merge window 2024-03-19 11:38:27 -07:00
Kconfig dax: remove CONFIG_DAX_DRIVER 2021-12-04 08:58:51 -08:00
Makefile s390: remove xpram device driver 2021-09-07 13:38:42 +02:00
scm_blk.c block: move the nonrot flag to queue_limits 2024-06-19 07:58:28 -06:00
scm_blk.h block: remove genhd.h 2022-02-02 07:49:59 -07:00
scm_drv.c s390/scm: Make struct scm_driver::remove return void 2021-07-21 11:53:42 +02:00