Commit 296abc0
Andreas Gruenbacher
gfs2: No short reads or writes upon glock contention
Commit 00bfe02 ("gfs2: Fix mmap + page fault deadlocks for buffered
I/O") changed gfs2_file_read_iter() and gfs2_file_buffered_write() to
allow dropping the inode glock while faulting in user buffers. When the
lock was dropped, a short result was returned to indicate that the
operation was interrupted.
As pointed out by Linus (see the link below), this behavior is broken
and the operations should always re-acquire the inode glock and resume
the operation instead.
Link: https://lore.kernel.org/lkml/CAHk-=whaz-g_nOOoo8RRiWNjnv2R+h6_xk2F1J4TuSRxk1MtLw@mail.gmail.com/
Fixes: 00bfe02 ("gfs2: Fix mmap + page fault deadlocks for buffered I/O")
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>1 parent 4fad37d commit 296abc0
1 file changed
Lines changed: 0 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
991 | 991 | | |
992 | 992 | | |
993 | 993 | | |
994 | | - | |
995 | | - | |
996 | 994 | | |
997 | 995 | | |
998 | 996 | | |
| |||
1069 | 1067 | | |
1070 | 1068 | | |
1071 | 1069 | | |
1072 | | - | |
1073 | | - | |
1074 | 1070 | | |
1075 | 1071 | | |
1076 | 1072 | | |
| |||
0 commit comments