fuse: duplicate ->connected in iqueue
This will allow checking ->connected just with the input 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 3d07541..e8be4611 100644
--- a/fs/fuse/fuse_i.h
+++ b/fs/fuse/fuse_i.h
@@ -375,6 +375,9 @@
};
struct fuse_iqueue {
+ /** Connection established */
+ unsigned connected;
+
/** Readers of the connection are waiting on this */
wait_queue_head_t waitq;