Whamcloud - gitweb
git://git.whamcloud.com
/
tools
/
e2fsprogs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aad3490
)
lib/ext2fs: fix unbalanced mutex unlock for BOUNCE_MTX in unix_io
author
Ritesh Harjani (IBM)
<ritesh.list@gmail.com>
Mon, 7 Nov 2022 12:20:49 +0000
(17:50 +0530)
committer
Theodore Ts'o
<tytso@mit.edu>
Tue, 24 Jan 2023 16:39:25 +0000
(11:39 -0500)
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>
lib/ext2fs/unix_io.c
patch
|
blob
|
history
diff --git
a/lib/ext2fs/unix_io.c
b/lib/ext2fs/unix_io.c
index
e53db33
..
5b89482
100644
(file)
--- a/
lib/ext2fs/unix_io.c
+++ b/
lib/ext2fs/unix_io.c
@@
-305,7
+305,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;