diff options
| author | Daejun Park <daejun7.park@samsung.com> | 2026-11-12 10:35:29 +0900 |
|---|---|---|
| committer | Mikulas Patocka <mpatocka@redhat.com> | 2026-11-13 22:18:14 +0100 |
| commit | e92cd41e8e5ee5616c6c7cd4378661d942f0a7c0 (patch) | |
| tree | b0fce2cfd1ec4872a9df68b48df763df69b475b5 /scripts/bash-completion | |
| parent | 46af2c975958119290ddcd984a98491966123a7b (diff) | |
dm: fail a REQ_PREFLUSH bio with data when its preflush fails
For a bio with REQ_PREFLUSH and data, dm core may send an empty flush
first. If the flush fails, __dm_io_complete() still reissues the bio
without REQ_PREFLUSH and drops the error. When that write succeeds,
the XFS log keeps running and fsync() can return 0.
End the bio with the flush error instead of writing the data, as
blk-mq does.
Fixes: 6a8736d10cb4 ("dm: relax ordering of bio-based flush implementation")
Cc: stable@vger.kernel.org
Signed-off-by: Daejun Park <daejun7.park@samsung.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Diffstat (limited to 'scripts/bash-completion')
0 files changed, 0 insertions, 0 deletions
