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
..
2025-12-03 06:28:17 -05:00
2025-05-08 11:55:43 +02:00
2025-12-03 06:28:17 -05:00
2023-09-23 10:48:15 +02:00
2025-12-03 06:28:17 -05:00
2024-03-06 14:35:23 +00:00
2025-09-02 08:35:50 +00:00
2025-12-03 06:31:58 -05:00
2025-09-02 08:35:50 +00:00
2025-08-31 10:10:00 +01:00
2025-09-30 21:35:04 +01:00
2023-09-23 10:47:59 +02:00
2023-09-23 10:48:11 +02:00
2024-06-16 13:23:24 +02:00
2025-10-05 09:11:31 +00:00
2024-04-16 19:42:19 +03:00
2024-04-15 00:23:14 +03:00
2023-09-23 10:48:16 +02:00
2025-10-05 09:11:31 +00:00
2025-10-05 09:11:31 +00:00
2024-11-08 16:19:19 +01:00
2025-08-28 03:26:34 +03:00
2025-12-03 07:03:54 -05:00
2025-09-30 21:35:02 +01:00
2025-09-16 13:55:14 +02:00
2025-09-16 13:55:14 +02:00
2025-12-03 06:00:29 -05:00
2025-09-30 21:35:04 +01:00
2025-09-16 13:55:08 +02:00
2025-10-05 09:11:31 +00:00
2025-09-02 08:35:50 +00:00
2025-09-16 13:55:16 +02:00
2025-12-03 06:31:58 -05:00
2024-11-08 16:19:17 +01:00
2022-04-15 14:15:03 +02:00
2025-12-03 06:31:58 -05:00
2025-10-05 09:11:31 +00:00
2025-12-03 05:48:52 -05:00
2023-09-23 10:47:58 +02:00
2022-12-17 18:14:34 +02:00
2025-08-28 03:26:58 +03:00
2025-12-03 05:48:50 -05:00
2023-08-11 11:45:01 +02:00
2025-08-31 10:09:59 +01:00
2025-09-16 13:55:16 +02:00
2025-09-02 08:35:50 +00:00
2025-10-09 20:31:13 +03:00
2024-05-10 02:06:19 +03:00
2021-10-06 15:31:20 +02:00
2025-09-02 08:35:50 +00:00
2023-09-23 10:47:59 +02:00
2025-08-31 10:10:00 +01:00
2025-09-15 16:25:18 +03:00
2025-10-05 09:11:31 +00:00
2024-05-03 06:16:46 +00:00
2024-04-13 12:50:15 +02:00
2025-09-30 21:35:04 +01:00
2025-09-02 08:35:50 +00:00
2025-09-22 10:18:19 +02:00
2024-12-11 19:11:59 +00:00
2025-09-30 21:35:04 +01:00
2025-08-28 03:26:58 +03:00
2025-09-30 21:35:03 +01:00
2025-08-31 10:09:56 +01:00
2023-10-16 15:01:41 +03:00
2023-01-18 11:30:42 +01:00
2024-09-04 13:13:02 +02:00
2022-12-17 18:14:34 +02:00
2025-04-03 10:09:49 +02:00
2025-08-31 10:09:59 +01:00
2025-09-15 16:25:18 +03:00
2025-10-05 09:11:31 +00:00
2023-01-18 11:30:27 +01:00
2024-02-23 08:12:58 +01:00
2025-10-09 20:31:13 +03:00
2022-06-14 16:59:24 +02:00
2025-09-30 21:35:04 +01:00
2025-08-30 09:45:47 +02:00
2025-08-28 03:26:34 +03:00
2023-09-23 10:47:59 +02:00
2025-08-30 09:46:24 +02:00
2025-10-09 20:31:13 +03:00
2024-11-08 16:19:09 +01:00
2024-03-26 18:22:34 -04:00
2025-08-28 03:26:34 +03:00
2025-09-22 10:17:52 +02:00
2025-09-02 08:35:50 +00:00
2025-12-03 06:31:59 -05:00
2025-08-31 10:09:52 +01:00
2025-09-15 16:25:18 +03:00
2025-08-28 03:26:34 +03:00
2025-08-31 10:09:53 +01:00
2025-08-30 09:45:47 +02:00
2025-08-31 23:58:07 +08:00
2025-08-31 10:09:58 +01:00
2024-09-04 13:13:07 +02:00
2025-08-31 23:58:07 +08:00
2023-01-18 11:30:51 +01:00
2025-04-14 14:17:37 +03:00
2025-08-31 10:09:52 +01:00
2025-12-03 06:31:59 -05:00
2025-08-31 10:09:55 +01:00
2025-09-30 21:35:03 +01:00
2025-08-31 10:09:56 +01:00
2025-08-31 23:56:41 +08:00
2025-08-31 23:56:41 +08:00
2025-12-03 06:31:59 -05:00
2025-12-03 06:31:58 -05:00
2024-03-26 18:22:34 -04:00
2021-12-07 12:47:09 +05:30
2022-02-28 19:00:41 +05:30
2022-10-26 13:19:21 +02:00
2022-04-27 13:39:44 +02:00
2023-05-30 12:42:11 +01:00
2025-12-03 06:31:59 -05:00
2025-08-30 09:46:24 +02:00
2025-09-30 21:35:03 +01:00
2025-09-15 16:25:18 +03:00