linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* io_opt fixups
@ 2024-07-01  5:17 Christoph Hellwig
  2024-07-01  5:17 ` [PATCH 1/3] block: remove a duplicate io_min check in blk_validate_limits Christoph Hellwig
                   ` (5 more replies)
  0 siblings, 6 replies; 15+ messages in thread
From: Christoph Hellwig @ 2024-07-01  5:17 UTC (permalink / raw)
  To: Jens Axboe
  Cc: Keith Busch, Sagi Grimberg, Martin K . Petersen, linux-block,
	linux-nvme

Hi all,

I recently noticed that on my test VMs with the Qemu NVMe emulations I
see a zero max_setors_kb limit in sysfs.  It turns out Qemu advertises
a one-LBA optimal write size, which is a bit silly.

This series handles this odd case properly both in the block layer and
the nvme driver as a sort of defense in depth.

Diffstat:
 block/blk-settings.c     |    5 ++---
 drivers/nvme/host/core.c |    3 ++-
 2 files changed, 4 insertions(+), 4 deletions(-)

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

end of thread, other threads:[~2024-07-01 15:11 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-01  5:17 io_opt fixups Christoph Hellwig
2024-07-01  5:17 ` [PATCH 1/3] block: remove a duplicate io_min check in blk_validate_limits Christoph Hellwig
2024-07-01  6:37   ` Chaitanya Kulkarni
2024-07-01  7:06   ` Sagi Grimberg
2024-07-01  5:17 ` [PATCH 2/3] block: don't reduce max_sectors based on io_opt Christoph Hellwig
2024-07-01  6:42   ` Chaitanya Kulkarni
2024-07-01  7:08   ` Sagi Grimberg
2024-07-01  5:17 ` [PATCH 3/3] nvme: don't set io_opt if NOWS is zero Christoph Hellwig
2024-07-01  7:02   ` Chaitanya Kulkarni
2024-07-01  7:08   ` Sagi Grimberg
2024-07-01 13:55   ` Keith Busch
2024-07-01 15:11     ` Christoph Hellwig
     [not found] ` <CGME20240701073115epcas5p3e2758375e272cba80281fe0ac37394d0@epcas5p3.samsung.com>
2024-07-01  7:24   ` io_opt fixups Nitesh Shetty
2024-07-01 10:22 ` Johannes Thumshirn
2024-07-01 12:53 ` 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).