diff options
author | Christoph Hellwig <hch@lst.de> | 2014-09-26 18:02:50 +0400 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2014-11-12 22:22:52 +0300 |
commit | e0d4ed71ca0344494722a041780f004d2bcf0f11 (patch) | |
tree | ce776cb83bd3cefa8ace5bb529d1ec0480079022 /fs/nfs/netns.h | |
parent | 8c393f9a721c30a030049a680e1bf896669bb279 (diff) | |
download | linux-e0d4ed71ca0344494722a041780f004d2bcf0f11.tar.xz |
pnfs/blocklayout: serialize GETDEVICEINFO calls
The rpc_pipefs code isn't thread safe, leading to occasional use after
frees when running xfstests generic/241 (dbench).
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: http://lkml.kernel.org/r/1411740170-18611-2-git-send-email-hch@lst.de
Cc: stable@vger.kernel.org # 3.17.x
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs/netns.h')
-rw-r--r-- | fs/nfs/netns.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfs/netns.h b/fs/nfs/netns.h index ef221fb8a183..f0e06e4acbef 100644 --- a/fs/nfs/netns.h +++ b/fs/nfs/netns.h @@ -19,6 +19,7 @@ struct nfs_net { struct rpc_pipe *bl_device_pipe; struct bl_dev_msg bl_mount_reply; wait_queue_head_t bl_wq; + struct mutex bl_mutex; struct list_head nfs_client_list; struct list_head nfs_volume_list; #if IS_ENABLED(CONFIG_NFS_V4) |