]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
pNFS: Don't send LAYOUTGET on OPEN for read, if we already have cached data
authorTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 2 Feb 2017 17:26:38 +0000 (12:26 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 31 May 2018 19:03:12 +0000 (15:03 -0400)
commit64294b08f9d27f83cbb0975250614864fa733bda
tree5e342c641fba507f84a486b6ed6e47880bc82065
parent8dc96566c0c34b8c2632bc6071dad208d69dd5b0
pNFS: Don't send LAYOUTGET on OPEN for read, if we already have cached data

If we're only opening the file for reading, and the file is empty and/or
we already have cached data, then heuristically optimise away the
LAYOUTGET.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/pnfs.c