]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] NFSv4: Fix up races in nfs4_proc_setattr()
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 22 Jun 2005 17:16:29 +0000 (17:16 +0000)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 22 Jun 2005 20:07:35 +0000 (16:07 -0400)
commitbe7b04f3a0b9f77c216b05a8c753d074b7adad50
tree5dd77a7fa392710dab47d30ae42bfb88b932b097
parentaf8898cebf4aaaa768c2aa85cf05d60af4255bef
[PATCH] NFSv4: Fix up races in nfs4_proc_setattr()

 If we do not hold a valid stateid that is open for writes, there is little
 point in doing an extra open of the file, as the RFC does not appear to
 mandate this...

 Make setattr use the correct stateid if we're holding mandatory byte
 range locks.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4proc.c