1From c640cf1f3a9a7ac6ecbf82c27539c8e158f8ea24 Mon Sep 17 00:00:00 2001 2From: "Ritesh Harjani (IBM)" <ritesh.list@gmail.com> 3Date: Mon, 7 Nov 2022 17:50:49 +0530 4Subject: lib/ext2fs: fix unbalanced mutex unlock for BOUNCE_MTX in unix_io 5 6f_crashdisk test failed with UNIX_IO_FORCE_BOUNCE=yes due to unbalanced 7mutex unlock in below path. 8 9This patch fixes it. 10 11Signed-off-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com> 12Signed-off-by: Theodore Ts'o <tytso@mit.edu> 13--- 14 lib/ext2fs/unix_io.c | 1 - 15 1 file changed, 1 deletion(-) 16 17diff --git a/lib/ext2fs/unix_io.c b/lib/ext2fs/unix_io.c 18index e53db333..5b894826 100644 19--- a/lib/ext2fs/unix_io.c 20+++ b/lib/ext2fs/unix_io.c 21@@ -305,7 +305,6 @@ bounce_read: 22 while (size > 0) { 23 actual = read(data->dev, data->bounce, align_size); 24 if (actual != align_size) { 25- mutex_unlock(data, BOUNCE_MTX); 26 actual = really_read; 27 buf -= really_read; 28 size += really_read; 29-- 30cgit 31 32