]> git.baikalelectronics.ru Git - kernel.git/commit
gfs2: Fix mmap locking for write faults
authorAndreas Gruenbacher <agruenba@redhat.com>
Sat, 15 May 2021 15:27:14 +0000 (17:27 +0200)
committerAndreas Gruenbacher <agruenba@redhat.com>
Fri, 21 May 2021 03:16:38 +0000 (05:16 +0200)
commitd41bb7a6a80bba700c59a726fa36168cd3f8f45a
treee4bdc7866e6d0e3f9868a1d08edcecf14b179412
parent00b101d9d6c076761f7d322cf98e40e4223e1bc3
gfs2: Fix mmap locking for write faults

When a write fault occurs, we need to take the inode glock of the underlying
inode in exclusive mode.  Otherwise, there's no guarantee that the dirty page
will be written back to disk.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/file.c