From: Keith Busch <kbusch@xxxxxxxxxx> 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