Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit f8806c84 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

NFS: Fix writeback performance issue on cache invalidation



If a cache invalidation is triggered, and we happen to have a lot of
writebacks cached at the time, then the call to invalidate_inode_pages2()
will end up calling ->launder_page() on each and every dirty page in order
to sync its contents to disk, thus defeating write coalescing.
The following patch ensures that we try to sync the inode to disk before
calling invalidate_inode_pages2() so that we do the writeback as efficiently
as possible.

Reported-by: default avatarWilliam Dauchy <william@gandi.net>
Reported-by: default avatarPascal Bouchareine <pascal@gandi.net>
Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
Tested-by: default avatarWilliam Dauchy <william@gandi.net>
Reviewed-by: default avatarJeff Layton <jlayton@redhat.com>
parent 786615bc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment