Files
kernel_oneplus_sm8250/fs
Vivek Goyal 343cf0b77d UPSTREAM: 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.

Change-Id: Ibcaa03cc093e93d5f07eb97341b43a1d23838b53
Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
2025-12-03 07:03:54 -05:00
..
2024-11-08 16:19:19 +01:00
2024-11-08 16:19:17 +01:00
2025-09-22 10:18:19 +02:00
2022-06-14 16:59:24 +02:00
2025-08-30 09:45:47 +02:00
2025-08-30 09:46:24 +02:00
2025-08-30 09:45:47 +02:00
2022-02-28 19:00:41 +05:30
2025-08-30 09:46:24 +02:00