diff options
| author | Mikulas Patocka <mpatocka@redhat.com> | 2026-01-12 21:15:27 +0100 |
|---|---|---|
| committer | Mikulas Patocka <mpatocka@redhat.com> | 2026-01-14 13:15:02 +0100 |
| commit | c698b7f417801fcd79f0dc844250b3361d38e6b8 (patch) | |
| tree | 8cd505521fb0c845e434aed8a2a0b939bd7d9b46 /tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git | |
| parent | e9f5a55b70ae6187ab64ef2d1232ae2738e31d1f (diff) | |
dm-integrity: fix a typo in the code for write/discard race
If we send a write followed by a discard, it may be possible that the
discarded data end up being overwritten by the previous write from the
journal. The code tries to prevent that, but there was a typo in this
logic that made it not being activated as it should be.
Note that if we end up here the second time (when discard_retried is
true), it means that the write bio is actually racing with the discard
bio, and in this situation it is not specified which of them should win.
Cc: stable@vger.kernel.org
Fixes: 31843edab7cb ("dm integrity: improve discard in journal mode")
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Diffstat (limited to 'tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
