Here's an improved version. If the IOCB_NOIO flag can be added right away, we can just fix the locking in gfs2. Thanks, Andreas Andreas Gruenbacher (2): fs: Add IOCB_NOIO flag for generic_file_read_iter gfs2: Rework read and page fault locking fs/gfs2/aops.c | 45 +-------------------------------------- fs/gfs2/file.c | 52 ++++++++++++++++++++++++++++++++++++++++++++-- include/linux/fs.h | 1 + mm/filemap.c | 17 +++++++++++++-- 4 files changed, 67 insertions(+), 48 deletions(-) -- 2.26.2