Amir Goldstein b8962a9d8c nfsd: use fsnotify group lock helpers
Before commit 9542e6a643fc6 ("nfsd: Containerise filecache laundrette")
nfsd would close open files in direct reclaim context and that could
cause a deadlock when fsnotify mark allocation went into direct reclaim
and nfsd shrinker tried to free existing fsnotify marks.

To avoid issues like this in future code, set the FSNOTIFY_GROUP_NOFS
flag on nfsd fsnotify group to prevent going into direct reclaim from
fsnotify_add_inode_mark().

Link: https://lore.kernel.org/r/20220422120327.3459282-10-amir73il@gmail.com
Suggested-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20220321112310.vpr7oxro2xkz5llh@quack3.lan/
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
2022-04-25 14:37:31 +02:00
..
2022-02-02 07:49:59 -07:00
2021-12-03 18:44:06 +01:00
2021-01-25 09:36:28 -05:00
2022-03-11 10:25:14 -05:00
2021-10-02 15:51:10 -04:00
2022-03-11 10:25:14 -05:00
2022-01-08 14:42:02 -05:00
2022-02-09 09:56:57 -08:00
2022-02-09 09:24:40 -05:00
2021-01-24 14:27:17 +01:00
2021-10-02 15:51:10 -04:00
2022-02-09 09:24:01 -05:00
2022-02-28 10:26:40 -05:00
2022-03-11 10:25:14 -05:00
2022-03-11 10:25:14 -05:00
2022-03-11 10:25:14 -05:00
2021-12-13 13:42:51 -05:00
2021-12-13 13:42:51 -05:00
2022-02-28 10:26:39 -05:00
2022-03-22 17:03:12 -07:00
2022-03-11 10:25:14 -05:00
2018-09-25 20:34:54 -04:00