Files
twx-linux/include/linux
NeilBrown 66cf5de084 NFS: swap IO handling is slightly different for O_DIRECT IO
[ Upstream commit 64158668ac ]

1/ Taking the i_rwsem for swap IO triggers lockdep warnings regarding
   possible deadlocks with "fs_reclaim".  These deadlocks could, I believe,
   eventuate if a buffered read on the swapfile was attempted.

   We don't need coherence with the page cache for a swap file, and
   buffered writes are forbidden anyway.  There is no other need for
   i_rwsem during direct IO.  So never take it for swap_rw()

2/ generic_write_checks() explicitly forbids writes to swap, and
   performs checks that are not needed for swap.  So bypass it
   for swap_rw().

Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-15 14:18:35 +02:00
..
2020-02-19 19:53:09 +01:00
2021-01-30 13:54:11 +01:00
2020-03-25 08:25:58 +01:00
2021-05-19 10:08:30 +02:00
2022-04-15 14:18:32 +02:00
2019-12-13 08:42:53 +01:00
2021-03-04 10:26:29 +01:00
2021-02-07 15:35:49 +01:00
2021-11-17 09:48:17 +01:00
2019-12-13 08:43:18 +01:00
2021-06-30 08:47:51 -04:00
2020-07-29 10:18:36 +02:00
2021-09-03 10:08:12 +02:00
2020-03-18 07:17:46 +01:00
2020-04-02 15:11:00 +02:00
2021-03-07 12:20:49 +01:00
2020-12-11 13:23:28 +01:00
2020-04-02 15:11:00 +02:00
2021-12-14 14:49:02 +01:00
2021-06-10 13:37:14 +02:00