]> git.baikalelectronics.ru Git - 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)
commit6f8f21b6e52c62035a31fa7f1f675330405a62c4
tree5e342c641fba507f84a486b6ed6e47880bc82065
parent4622e54c6270ab5e4747c25f7b69fa5beff473e4
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