]> 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)
commita5da01f7a7a7fad87dd4dc8c17bd85afc45ef7af
tree5e342c641fba507f84a486b6ed6e47880bc82065
parent71c08b152e24f8eeca7795c040c6527fed17ca63
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