All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/6] gfs2: Fix mmap + page fault deadlocks
@ 2021-07-18 22:39 ` Andreas Gruenbacher
  0 siblings, 0 replies; 36+ messages in thread
From: Andreas Gruenbacher @ 2021-07-18 22:39 UTC (permalink / raw)
  To: Linus Torvalds
  Cc: Alexander Viro, Jan Kara, Matthew Wilcox, Christoph Hellwig,
	cluster-devel, linux-fsdevel, linux-kernel, ocfs2-devel,
	Andreas Gruenbacher

Hi Linus et al.,

here's an update to the gfs2 mmap + page faults fix that implements
Linus's suggestion of disabling page faults while we're holding the
inode glock.

This passes fstests except for test generic/095, which fails due to an
independent bug in the iov_iter code.  I'm currently trying to get
initial feedback from Al and Christoph on that.

Any feedback would be welcome.

Thanks a lot,
Andreas

Andreas Gruenbacher (6):
  iov_iter: Introduce fault_in_iov_iter helper
  iomap: Fix iomap_dio_rw return value for page faults
  gfs2: Add wrapper for iomap_file_buffered_write
  gfs2: Fix mmap + page fault deadlocks for buffered I/O
  iov_iter: Introduce ITER_FLAG_FAST_ONLY flag
  gfs2: Fix mmap + page fault deadlocks for direct I/O

 fs/gfs2/file.c       | 79 ++++++++++++++++++++++++++++++++++++++++----
 fs/iomap/direct-io.c |  2 ++
 include/linux/mm.h   |  3 ++
 include/linux/uio.h  | 16 +++++++--
 lib/iov_iter.c       | 62 +++++++++++++++++++++++++++++++---
 mm/gup.c             | 68 ++++++++++++++++++++++++++++++++++++++
 6 files changed, 215 insertions(+), 15 deletions(-)

-- 
2.26.3


^ permalink raw reply	[flat|nested] 36+ messages in thread

end of thread, other threads:[~2021-07-19 20:47 UTC | newest]

Thread overview: 36+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-18 22:39 [PATCH v2 0/6] gfs2: Fix mmap + page fault deadlocks Andreas Gruenbacher
2021-07-18 22:39 ` [Cluster-devel] " Andreas Gruenbacher
2021-07-18 22:39 ` [Ocfs2-devel] " Andreas Gruenbacher
2021-07-18 22:39 ` [PATCH v2 1/6] iov_iter: Introduce fault_in_iov_iter helper Andreas Gruenbacher
2021-07-18 22:39   ` [Cluster-devel] " Andreas Gruenbacher
2021-07-18 22:39   ` [Ocfs2-devel] " Andreas Gruenbacher
2021-07-19 19:26   ` Linus Torvalds
2021-07-19 19:26     ` [Cluster-devel] " Linus Torvalds
2021-07-19 19:26     ` [Ocfs2-devel] " Linus Torvalds
2021-07-18 22:39 ` [PATCH v2 2/6] iomap: Fix iomap_dio_rw return value for page faults Andreas Gruenbacher
2021-07-18 22:39   ` [Cluster-devel] " Andreas Gruenbacher
2021-07-18 22:39   ` [Ocfs2-devel] " Andreas Gruenbacher
2021-07-18 22:39 ` [PATCH v2 3/6] gfs2: Add wrapper for iomap_file_buffered_write Andreas Gruenbacher
2021-07-18 22:39   ` [Cluster-devel] " Andreas Gruenbacher
2021-07-18 22:39   ` [Ocfs2-devel] " Andreas Gruenbacher
2021-07-18 22:39 ` [PATCH v2 4/6] gfs2: Fix mmap + page fault deadlocks for buffered I/O Andreas Gruenbacher
2021-07-18 22:39   ` [Cluster-devel] " Andreas Gruenbacher
2021-07-18 22:39   ` [Ocfs2-devel] " Andreas Gruenbacher
2021-07-18 22:39 ` [PATCH v2 5/6] iov_iter: Introduce ITER_FLAG_FAST_ONLY flag Andreas Gruenbacher
2021-07-18 22:39   ` [Cluster-devel] " Andreas Gruenbacher
2021-07-18 22:39   ` [Ocfs2-devel] " Andreas Gruenbacher
2021-07-19 19:29   ` Linus Torvalds
2021-07-19 19:29     ` [Cluster-devel] " Linus Torvalds
2021-07-19 19:29     ` [Ocfs2-devel] " Linus Torvalds
2021-07-19 20:17     ` Al Viro
2021-07-19 20:17       ` [Cluster-devel] " Al Viro
2021-07-19 20:17       ` [Ocfs2-devel] " Al Viro
2021-07-18 22:39 ` [PATCH v2 6/6] gfs2: Fix mmap + page fault deadlocks for direct I/O Andreas Gruenbacher
2021-07-18 22:39   ` [Cluster-devel] " Andreas Gruenbacher
2021-07-18 22:39   ` [Ocfs2-devel] " Andreas Gruenbacher
2021-07-19 19:31 ` [PATCH v2 0/6] gfs2: Fix mmap + page fault deadlocks Linus Torvalds
2021-07-19 19:31   ` [Cluster-devel] " Linus Torvalds
2021-07-19 19:31   ` [Ocfs2-devel] " Linus Torvalds
2021-07-19 20:14 ` Al Viro
2021-07-19 20:14   ` [Cluster-devel] " Al Viro
2021-07-19 20:14   ` [Ocfs2-devel] " Al Viro

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.