dm raid: fix false positive for requeue needed during reshape
authorMing Lei <ming.lei@redhat.com>
Mon, 11 Mar 2024 17:42:55 +0000 (13:42 -0400)
committerMike Snitzer <snitzer@kernel.org>
Tue, 12 Mar 2024 13:27:42 +0000 (09:27 -0400)
commitb25b8f4b8ecef0f48c05f0c3572daeabefe16526
treef8a63cb2a0187845a855bcab9a8528dd3f2697a7
parentf30e5ed1306be8a900b33317bc429dd3794d81a1
dm raid: fix false positive for requeue needed during reshape

An empty flush doesn't have a payload, so it should never be looked at
when considering to possibly requeue a bio for the case when a reshape
is in progress.

Fixes: 9dbd1aa3a81c ("dm raid: add reshaping support to the target")
Reported-by: Patrick Plenefisch <simonpatp@gmail.com>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
drivers/md/dm-raid.c