]> git.baikalelectronics.ru Git - kernel.git/commit
pNFS/flexfiles: Turn off layoutcommit for servers that don't need it
authorTrond Myklebust <trond.myklebust@primarydata.com>
Fri, 26 Jun 2015 18:51:32 +0000 (14:51 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Fri, 26 Jun 2015 18:51:32 +0000 (14:51 -0400)
commit14ff5297e786b16d4b45a979a913d2b131fae09a
treea5a4556f91e52c95540cc7cb6f3eb3088265cd99
parent5a3d2fd112b0678156141b8746ea0c5bc17d39d3
pNFS/flexfiles: Turn off layoutcommit for servers that don't need it

This patch ensures that we record the value of 'ffl_flags' from
the layout, and then checks for the presence of the
FF_FLAGS_NO_LAYOUTCOMMIT flag before deciding whether or not to
call pnfs_set_layoutcommit().

The effect is that servers now can decide whether or not they want
the client to call layoutcommit before returning a writeable layout.

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