]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
pNFS: Return RW layouts on OPEN_DOWNGRADE
authorTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 21 Nov 2016 15:56:38 +0000 (10:56 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 19 Dec 2016 22:29:55 +0000 (17:29 -0500)
commite71708d4df1d4b81427badb9ac4bc4a813338b17
tree2562e1b009f4903ab37d836d85d303a498f2d722
parentb6808145ad2aa625b962fc55f30484091d5e8fe7
pNFS: Return RW layouts on OPEN_DOWNGRADE

If the client holds no more writeable open state, and does not hold a
write delegation, then send a layoutreturn as part of the OPEN_DOWNGRADE.

We do this only for writes, since some layout drivers may require you to
also hold a read layout if you are doing a R/W workload.

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