linux/fs/fuse
Vivek Goyal 0cd1eb9a41 fuse: separate fuse device allocation and installation in fuse_conn
As of now fuse_dev_alloc() both allocates a fuse device and installs it in
fuse_conn list.  fuse_dev_alloc() can fail if fuse_device allocation fails.

virtio-fs needs to initialize multiple fuse devices (one per virtio queue).
It initializes one fuse device as part of call to fuse_fill_super_common()
and rest of the devices are allocated and installed after that.

But, we can't afford to fail after calling fuse_fill_super_common() as we
don't have a way to undo all the actions done by fuse_fill_super_common().
So to avoid failures after the call to fuse_fill_super_common(),
pre-allocate all fuse devices early and install them into fuse connection
later.

This patch provides two separate helpers for fuse device allocation and
fuse device installation in fuse_conn.

Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
2019-09-12 14:59:41 +02:00
..
acl.c fuse: Support fuse filesystems outside of init_user_ns 2018-03-20 17:11:44 +01:00
control.c convenience helper: get_tree_single() 2019-07-04 22:01:58 -04:00
cuse.c fuse: separate fuse device allocation and installation in fuse_conn 2019-09-12 14:59:41 +02:00
dev.c fuse: separate fuse device allocation and installation in fuse_conn 2019-09-12 14:59:41 +02:00
dir.c fuse: convert readlink to simple api 2019-09-10 16:29:49 +02:00
file.c fuse: simplify request allocation 2019-09-10 16:29:50 +02:00
fuse_i.h fuse: separate fuse device allocation and installation in fuse_conn 2019-09-12 14:59:41 +02:00
inode.c fuse: separate fuse device allocation and installation in fuse_conn 2019-09-12 14:59:41 +02:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
readdir.c fuse: convert readdir to simple api 2019-09-10 16:29:49 +02:00
xattr.c fuse: rearrange and resize fuse_args fields 2019-09-10 16:29:48 +02:00