Re: [PATCH] block: recalculate segment count for multi-segment discard requests correctly

From: Chaitanya Kulkarni
Date: Tue Feb 02 2021 - 22:20:55 EST


On 2/2/21 18:39, Ming Lei wrote:
> + /* fall through */
> case REQ_OP_WRITE_ZEROES:
> - return 0;
I don't think returning 1 for write-zeroes is right,
did you test this patch with write-zeores enabled controller with
the right fs that triggers this behavior ?