summaryrefslogtreecommitdiffstats
path: root/fs/fuse/inode.c
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@suse.cz>2015-07-01 16:26:04 +0200
committerMiklos Szeredi <mszeredi@suse.cz>2015-07-01 16:26:04 +0200
commite96edd94d0887707fc41c5d21d5b488edcd31689 (patch)
treeeba934e52d1c1155590b116a9561560273ce411d /fs/fuse/inode.c
parent3a2b5b9cd9610f789f5e5f91a010d9fa3ca78632 (diff)
downloadop-kernel-dev-e96edd94d0887707fc41c5d21d5b488edcd31689.zip
op-kernel-dev-e96edd94d0887707fc41c5d21d5b488edcd31689.tar.gz
fuse: duplicate ->connected in pqueue
This will allow checking ->connected just with the processing queue lock. 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 7b146bb..88b9ca4 100644
--- a/fs/fuse/inode.c
+++ b/fs/fuse/inode.c
@@ -582,6 +582,7 @@ static void fuse_pqueue_init(struct fuse_pqueue *fpq)
memset(fpq, 0, sizeof(struct fuse_pqueue));
INIT_LIST_HEAD(&fpq->processing);
INIT_LIST_HEAD(&fpq->io);
+ fpq->connected = 1;
}
void fuse_conn_init(struct fuse_conn *fc)
OpenPOWER on IntegriCloud