]> git.baikalelectronics.ru Git - kernel.git/commit
nfs4: client: do not send empty SETATTR after OPEN_CREATE
authorTigran Mkrtchyan <tigran.mkrtchyan@desy.de>
Thu, 12 May 2016 09:16:38 +0000 (11:16 +0200)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 17 May 2016 19:47:55 +0000 (15:47 -0400)
commit6c0c5e0fb1c3f31b59161bda4b76cdd624da3795
tree09a83ba36de8c291582ebcb49136dd64caf66626
parent9df45077b2b3cffbba40fa305deabf0df50cdfaf
nfs4: client: do not send empty SETATTR after OPEN_CREATE

OPEN_CREATE with EXCLUSIVE4_1 sends initial file permission.
Ignoring  fact, that server have indicated that file mod is set, client
will send yet another SETATTR request, but, as mode is already set,
new SETATTR will be empty. This is not a problem, nevertheless
an extra roundtrip and slow open on high latency networks.

This change is aims to skip extra setattr after open  if there are
no attributes to be set.

Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/nfs4proc.c