aboutsummaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorMikulas Patocka <mpatocka@redhat.com>2019-04-05 15:26:39 -0400
committerMike Snitzer <snitzer@redhat.com>2019-04-05 18:49:08 -0400
commit4ed319c6ac08e9a28fca7ac188181ac122f4de84 (patch)
treeb7b1c42338a40692cde5a854406b61adb2c4d3c9 /samples
parentdm: disable DISCARD if the underlying storage no longer supports it (diff)
downloadlinux-dev-4ed319c6ac08e9a28fca7ac188181ac122f4de84.tar.xz
linux-dev-4ed319c6ac08e9a28fca7ac188181ac122f4de84.zip
dm integrity: fix deadlock with overlapping I/O
dm-integrity will deadlock if overlapping I/O is issued to it, the bug was introduced by commit 724376a04d1a ("dm integrity: implement fair range locks"). Users rarely use overlapping I/O so this bug went undetected until now. Fix this bug by correcting, likely cut-n-paste, typos in ranges_overlap() and also remove a flawed ranges_overlap() check in remove_range_unlocked(). This condition could leave unprocessed bios hanging on wait_list forever. Cc: stable@vger.kernel.org # v4.19+ Fixes: 724376a04d1a ("dm integrity: implement fair range locks") Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions