linux-um.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* convert the SCSI ULDs to the atomic queue limits API v2
@ 2024-05-31  7:47 Christoph Hellwig
  2024-05-31  7:47 ` [PATCH 01/14] ubd: refactor the interrupt handler Christoph Hellwig
                   ` (16 more replies)
  0 siblings, 17 replies; 42+ messages in thread
From: Christoph Hellwig @ 2024-05-31  7:47 UTC (permalink / raw)
  To: Jens Axboe, Martin K. Petersen
  Cc: Richard Weinberger, Anton Ivanov, Johannes Berg, Josef Bacik,
	Ilya Dryomov, Dongsheng Yang, Roger Pau Monné, linux-um,
	linux-block, nbd, ceph-devel, xen-devel, linux-scsi

Hi all,

this series converts the SCSI upper level drivers to the atomic queue
limits API.

The first patch is a bug fix for ubd that later patches depend on and
might be worth picking up for 6.10.

The second patch changes the max_sectors calculation to take the optimal
I/O size into account so that sd, nbd and rbd don't have to mess with
the user max_sector value.  I'd love to see a careful review from the
nbd and rbd maintainers for this one!

The following patches clean up a few lose ends in the sd driver, and
then convert sd and sr to the atomic queue limits API.  The final
patches remove the now unused block APIs, and convert a few to be
specific to their now more narrow use case.

The patches are against Jens' block-6.10 tree.  Due to the amount of
block layer changes in here, and other that will depend on it, it
would be good if this could eventually be merged through the block
tree, or at least a shared branch between the SCSI and block trees.

Changes since v1:
 - change the io_opt value for rbd
 - fix a left-over direct assignent to q->limits
 - add a new patch to refactor the ubd interrupt handler
 - use an else if to micro-optimize the ubd error handling
 - also remove disk_set_max_open_zones and disk_set_max_active_zones
 - use SECTOR_SHIFT in one more place
 - various spelling fixes
 - comment formating fix

Diffstat:
 arch/um/drivers/ubd_kern.c   |   50 +++------
 block/blk-settings.c         |  238 +------------------------------------------
 drivers/block/nbd.c          |    2 
 drivers/block/rbd.c          |    3 
 drivers/block/xen-blkfront.c |    4 
 drivers/scsi/sd.c            |  222 ++++++++++++++++++++--------------------
 drivers/scsi/sd.h            |    6 -
 drivers/scsi/sd_zbc.c        |   27 ++--
 drivers/scsi/sr.c            |   42 ++++---
 include/linux/blkdev.h       |   52 +++------
 10 files changed, 210 insertions(+), 436 deletions(-)


^ permalink raw reply	[flat|nested] 42+ messages in thread

end of thread, other threads:[~2024-06-14 16:23 UTC | newest]

Thread overview: 42+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-31  7:47 convert the SCSI ULDs to the atomic queue limits API v2 Christoph Hellwig
2024-05-31  7:47 ` [PATCH 01/14] ubd: refactor the interrupt handler Christoph Hellwig
2024-06-14  1:35   ` Martin K. Petersen
2024-06-14  7:28   ` Anton Ivanov
2024-05-31  7:47 ` [PATCH 02/14] ubd: untagle discard vs write zeroes not support handling Christoph Hellwig
2024-06-14  1:36   ` Martin K. Petersen
2024-06-14  7:29   ` Anton Ivanov
2024-05-31  7:47 ` [PATCH 03/14] rbd: increase io_opt again Christoph Hellwig
2024-05-31  9:08   ` Ilya Dryomov
2024-06-14  1:36   ` Martin K. Petersen
2024-05-31  7:47 ` [PATCH 04/14] block: take io_opt and io_min into account for max_sectors Christoph Hellwig
2024-05-31  9:11   ` Ilya Dryomov
2024-06-14  1:40   ` Martin K. Petersen
2024-05-31  7:48 ` [PATCH 05/14] sd: simplify the ZBC case in provisioning_mode_store Christoph Hellwig
2024-06-14  1:41   ` Martin K. Petersen
2024-05-31  7:48 ` [PATCH 06/14] sd: add a sd_disable_discard helper Christoph Hellwig
2024-06-14  1:41   ` Martin K. Petersen
2024-05-31  7:48 ` [PATCH 07/14] sd: add a sd_disable_write_same helper Christoph Hellwig
2024-06-14  1:42   ` Martin K. Petersen
2024-05-31  7:48 ` [PATCH 08/14] sd: simplify the disable case in sd_config_discard Christoph Hellwig
2024-06-14  1:43   ` Martin K. Petersen
2024-05-31  7:48 ` [PATCH 09/14] sd: factor out a sd_discard_mode helper Christoph Hellwig
2024-06-14  1:43   ` Martin K. Petersen
2024-05-31  7:48 ` [PATCH 10/14] sd: cleanup zoned queue limits initialization Christoph Hellwig
2024-06-14  1:44   ` Martin K. Petersen
2024-05-31  7:48 ` [PATCH 11/14] sd: convert to the atomic queue limits API Christoph Hellwig
2024-05-31 11:34   ` John Garry
2024-06-14  1:47   ` Martin K. Petersen
2024-05-31  7:48 ` [PATCH 12/14] sr: " Christoph Hellwig
2024-06-14  1:48   ` Martin K. Petersen
2024-05-31  7:48 ` [PATCH 13/14] block: remove unused " Christoph Hellwig
2024-05-31 11:12   ` John Garry
     [not found]   ` <CGME20240531140203epcas5p1fed913b6729b684e0916dfd62787be13@epcas5p1.samsung.com>
2024-05-31 13:55     ` Nitesh Shetty
2024-06-14  1:48   ` Martin K. Petersen
2024-05-31  7:48 ` [PATCH 14/14] block: add special APIs for run-time disabling of discard and friends Christoph Hellwig
     [not found]   ` <CGME20240531110559epcas5p1f41d7d904ed46260837c38a57fa32d86@epcas5p1.samsung.com>
2024-05-31 10:58     ` Nitesh Shetty
2024-05-31 11:12   ` John Garry
2024-06-14  1:49   ` Martin K. Petersen
2024-05-31 11:29 ` convert the SCSI ULDs to the atomic queue limits API v2 John Garry
2024-05-31 12:07 ` Martin K. Petersen
2024-05-31 12:23   ` Christoph Hellwig
2024-06-14 16:23 ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).