]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Add memory barriers to the nfs_client->cl_cons_state initialisation
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 23 May 2012 17:26:10 +0000 (13:26 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 23 May 2012 19:24:59 +0000 (15:24 -0400)
commite13b0253e01708f3b80c581e0ce24eb1de616462
tree3311a74fc6f5cdbedbe4e1da9bbbbaf6671050a2
parente44afd73e720078e3e31a69d54df9861c18b5aa7
NFS: Add memory barriers to the nfs_client->cl_cons_state initialisation

Ensure that a process that uses the nfs_client->cl_cons_state test
for whether the initialisation process is finished does not read
stale data.

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