Trond Myklebust 6b8a94332e nfsd: Fix a write performance regression
The call to filemap_flush() in nfsd_file_put() is there to ensure that
we clear out any writes belonging to a NFSv3 client relatively quickly
and avoid situations where the file can't be evicted by the garbage
collector. It also ensures that we detect write errors quickly.

The problem is this causes a regression in performance for some
workloads.

So try to improve matters by deferring writeback until we're ready to
close the file, and need to detect errors so that we can force the
client to resend.

Tested-by: Jan Kara <jack@suse.cz>
Fixes: b6669305d35a ("nfsd: Reduce the number of calls to nfsd_file_gc()")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Link: https://lore.kernel.org/all/20220330103457.r4xrhy2d6nhtouzk@quack3.lan
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
2022-03-31 10:39:57 -04: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-11 10:25:14 -05:00
2022-03-11 10:25:14 -05:00
2018-09-25 20:34:54 -04:00