diff options
author | Adrian Hunter <[email protected]> | 2024-07-10 21:07:37 +0300 |
---|---|---|
committer | Ulf Hansson <[email protected]> | 2024-07-11 17:48:40 +0200 |
commit | 63d20a94f24fc1cbaf44d0e7c0e0a8077fde0aef (patch) | |
tree | 85560852e8a80801ec2ccad3f00e33c04382080c /scripts/gdb/linux/tasks.py | |
parent | ab069ce125965a5e282f7b53b86aee76ab32975c (diff) |
mmc: sdhci: Fix max_seg_size for 64KiB PAGE_SIZE
blk_queue_max_segment_size() ensured:
if (max_size < PAGE_SIZE)
max_size = PAGE_SIZE;
whereas:
blk_validate_limits() makes it an error:
if (WARN_ON_ONCE(lim->max_segment_size < PAGE_SIZE))
return -EINVAL;
The change from one to the other, exposed sdhci which was setting maximum
segment size too low in some circumstances.
Fix the maximum segment size when it is too low.
Fixes: 616f87661792 ("mmc: pass queue_limits to blk_mq_alloc_disk")
Cc: [email protected]
Signed-off-by: Adrian Hunter <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Acked-by: Jon Hunter <[email protected]>
Tested-by: Jon Hunter <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Ulf Hansson <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions