]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - fs/nfs/nfs4proc.c
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)
commit54ac471c83aff6b1e068eb8029c797dc68a76e89
tree3311a74fc6f5cdbedbe4e1da9bbbbaf6671050a2
parent4697bd5e9419348ef9fa9b55cefe4355ad9d3d01
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