Darrick J. Wong e33a97a830 block: fix detection of unsupported WRITE SAME in blkdev_issue_write_zeroes
On error, blkdev_issue_write_zeroes used to recheck the block device's
WRITE SAME queue limits after submitting WRITE SAME bios.  As stated in
the comment, the purpose of this was to collapse all IO errors to
EOPNOTSUPP if the effect of issuing bios was that WRITE SAME got turned
off in the queue limits.  Therefore, it does not make sense to reuse the
zeroes limit that was read earlier in the function because we only care
about the queue limit *now*, not what it was at the start of the
function.

Found by running generic/351 from fstests.

Fixes: 64b582ca88ca1 ("block: Read max write zeroes once for __blkdev_issue_write_zeroes()")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: John Garry <john.g.garry@oracle.com>
Link: https://lore.kernel.org/r/20240827175340.GB1977952@frogsfrogsfrogs
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2024-08-28 08:49:25 -06:00
..
2024-05-21 13:02:56 -07:00
2024-07-15 14:20:22 -07:00
2024-06-18 09:22:45 -06:00
2024-06-18 09:22:45 -06:00
2024-07-22 11:04:09 -07:00
2024-07-22 11:04:09 -07:00
2024-07-15 14:20:22 -07:00
2024-07-19 09:32:48 -06:00
2024-07-15 14:20:22 -07:00
2024-07-22 11:04:09 -07:00
2023-06-30 11:57:07 -07:00
2024-06-28 10:29:42 -06:00