summaryrefslogtreecommitdiff
path: root/fs/fuse/inode.c
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@suse.cz>2015-07-01 17:26:06 +0300
committerMiklos Szeredi <mszeredi@suse.cz>2015-07-01 17:26:06 +0300
commit45a91cb1a4fd9bb0e53c95e3dc9185dd5b5ba245 (patch)
tree121d4f3faa29a20bd583c725a3d905856133f714 /fs/fuse/inode.c
parent24b4d33d46e9c4c671a43f2640d80fe1159f488c (diff)
downloadlinux-45a91cb1a4fd9bb0e53c95e3dc9185dd5b5ba245.tar.xz
fuse: pqueue locking
Add a fpq->lock for protecting members of struct fuse_pqueue and FR_LOCKED request flag. Signed-off-by: Miklos Szeredi <mszeredi@suse.cz> Reviewed-by: Ashish Samant <ashish.samant@oracle.com>
Diffstat (limited to 'fs/fuse/inode.c')
-rw-r--r--fs/fuse/inode.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c
index 88b9ca401623..8373f59dc2a8 100644
--- a/fs/fuse/inode.c
+++ b/fs/fuse/inode.c
@@ -580,6 +580,7 @@ static void fuse_iqueue_init(struct fuse_iqueue *fiq)
static void fuse_pqueue_init(struct fuse_pqueue *fpq)
{
memset(fpq, 0, sizeof(struct fuse_pqueue));
+ spin_lock_init(&fpq->lock);
INIT_LIST_HEAD(&fpq->processing);
INIT_LIST_HEAD(&fpq->io);
fpq->connected = 1;