]> git.baikalelectronics.ru Git - kernel.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)
commit72154a5f7aea8f2bdf76e2b295dff23f03bc139f
tree2562e1b009f4903ab37d836d85d303a498f2d722
parentf4db64443514a3eb70319dd37f4e18cf625bd666
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