diff options
author | Ritesh Harjani (IBM) <ritesh.list@gmail.com> | 2022-11-07 17:50:49 +0530 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2023-02-05 14:51:00 -0500 |
commit | a06369183565bccbbba9a47b6c55622da8a1de85 (patch) | |
tree | 6f918d3212e16e423ea63982fb18b7f3a28c8858 | |
parent | c51c0395887eb258e6ebbf09ae65a3855ff98789 (diff) | |
download | e2fsprogs-a06369183565bccbbba9a47b6c55622da8a1de85.tar.gz |
lib/ext2fs: fix unbalanced mutex unlock for BOUNCE_MTX in unix_io
f_crashdisk test failed with UNIX_IO_FORCE_BOUNCE=yes due to unbalanced
mutex unlock in below path.
This patch fixes it.
Signed-off-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
-rw-r--r-- | lib/ext2fs/unix_io.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/ext2fs/unix_io.c b/lib/ext2fs/unix_io.c index 353d85afa..3171c7368 100644 --- a/lib/ext2fs/unix_io.c +++ b/lib/ext2fs/unix_io.c @@ -306,7 +306,6 @@ bounce_read: while (size > 0) { actual = read(data->dev, data->bounce, align_size); if (actual != align_size) { - mutex_unlock(data, BOUNCE_MTX); actual = really_read; buf -= really_read; size += really_read; |