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>
diff --git a/fs/fuse/fuse_i.h b/fs/fuse/fuse_i.h
index 3620eec..5897d89 100644
--- a/fs/fuse/fuse_i.h
+++ b/fs/fuse/fuse_i.h
@@ -402,6 +402,9 @@
};
struct fuse_pqueue {
+ /** Connection established */
+ unsigned connected;
+
/** The list of requests being processed */
struct list_head processing;