]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4: Fix a potential CLOSE race
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 18 Oct 2005 21:20:12 +0000 (14:20 -0700)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 18 Oct 2005 21:20:12 +0000 (14:20 -0700)
commit839d07dd26f18a49a0286c03fd659ee4200f5a97
tree83fb778ed53ba10c46734968f538aa0a57d376a1
parent27dfa89b42929de909046bf69b16cb8a3c167de1
NFSv4: Fix a potential CLOSE race

 Once the state_owner and lock_owner semaphores get removed, it will be
 possible for other OPEN requests to reopen the same file if they have
 lower sequence ids than our CLOSE call.
 This patch ensures that we recheck the file state once
 nfs_wait_on_sequence() has completed waiting.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4proc.c
fs/nfs/nfs4state.c
fs/nfs/nfs4xdr.c
include/linux/nfs_xdr.h