Linux block layer
 help / color / mirror / Atom feed
* [PATCHv4 0/2] block: don't forget user settings
@ 2023-01-05 20:51 Keith Busch
  2023-01-05 20:51 ` [PATCHv4 1/2] block: make BLK_DEF_MAX_SECTORS unsigned Keith Busch
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Keith Busch @ 2023-01-05 20:51 UTC (permalink / raw)
  To: linux-block, axboe; +Cc: hch, martin.petersen, Damien Le Moal, Keith Busch

From: Keith Busch <kbusch@kernel.org>

If the user overrides the max sectors for their device (which is
currently defaulting to quite a low value for modern hardware), their
request is lost on a rescan. Save it and fix the weird type issues.

Changes since v3: Fixed the unsigned long/unsigned int issue raised by
clang.

Keith Busch (2):
  block: make BLK_DEF_MAX_SECTORS unsigned
  block: save user max_sectors limit

 Documentation/ABI/stable/sysfs-block |  3 ++-
 block/blk-settings.c                 |  9 +++++++--
 block/blk-sysfs.c                    | 21 +++++++++++++++------
 drivers/block/null_blk/main.c        |  3 +--
 include/linux/blkdev.h               |  4 +++-
 5 files changed, 28 insertions(+), 12 deletions(-)

-- 
2.30.2


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

end of thread, other threads:[~2023-01-09  3:28 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-05 20:51 [PATCHv4 0/2] block: don't forget user settings Keith Busch
2023-01-05 20:51 ` [PATCHv4 1/2] block: make BLK_DEF_MAX_SECTORS unsigned Keith Busch
2023-01-05 21:19   ` Bart Van Assche
2023-01-08 17:13   ` Christoph Hellwig
2023-01-09  0:23   ` Martin K. Petersen
2023-01-05 20:51 ` [PATCHv4 2/2] block: save user max_sectors limit Keith Busch
2023-01-05 21:28   ` Bart Van Assche
2023-01-05 21:36     ` Keith Busch
2023-01-08 17:13   ` Christoph Hellwig
2023-01-09  0:25   ` Martin K. Petersen
2023-01-09  3:27 ` [PATCHv4 0/2] block: don't forget user settings Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox