]> 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)
commit794416d1cc79bb20921bb39cc39cd6ea8c5baa58
treee4bdc7866e6d0e3f9868a1d08edcecf14b179412
parentb2778ab091183300c091dbeabd2c5cb4c959836e
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