aboutsummaryrefslogtreecommitdiff
path: root/lib/test_overflow.c
diff options
context:
space:
mode:
authorMing Lei <[email protected]>2020-08-17 17:52:39 +0800
committerJens Axboe <[email protected]>2020-08-17 06:59:41 -0700
commit943b40c832beb71115e38a1c4d99b640b5342738 (patch)
treebad51d9f93dd0e6f0cd7e4acec5016f6acb62dab /lib/test_overflow.c
parentbcb21c8cc9947286211327d663ace69f07d37a76 (diff)
block: respect queue limit of max discard segment
When queue_max_discard_segments(q) is 1, blk_discard_mergable() will return false for discard request, then normal request merge is applied. However, only queue_max_segments() is checked, so max discard segment limit isn't respected. Check max discard segment limit in the request merge code for fixing the issue. Discard request failure of virtio_blk is fixed. Fixes: 69840466086d ("block: fix the DISCARD request merge") Signed-off-by: Ming Lei <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Cc: Stefano Garzarella <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions