Miquel Sabaté Solà
3f501412f2
btrfs: free pages on error in btrfs_uring_read_extent()
...
In this function the 'pages' object is never freed in the hopes that it is
picked up by btrfs_uring_read_finished() whenever that executes in the
future. But that's just the happy path. Along the way previous
allocations might have gone wrong, or we might not get -EIOCBQUEUED from
btrfs_encoded_read_regular_fill_pages(). In all these cases, we go to a
cleanup section that frees all memory allocated by this function without
assuming any deferred execution, and this also needs to happen for the
'pages' allocation.
Fixes: 34310c442e ("btrfs: add io_uring command for encoded reads (ENCODED_READ ioctl)")
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com >
Reviewed-by: Filipe Manana <fdmanana@suse.com >
Signed-off-by: Filipe Manana <fdmanana@suse.com >
Reviewed-by: David Sterba <dsterba@suse.com >
Signed-off-by: David Sterba <dsterba@suse.com >
2026-02-26 15:03:27 +01:00
..
2026-01-12 10:54:47 +01:00
2025-10-20 20:22:26 +02:00
2025-12-03 17:24:33 -08:00
2025-12-05 15:52:30 -08:00
2025-10-20 20:22:26 +02:00
2025-12-01 09:02:34 -08:00
2026-02-26 15:03:27 +01:00
2025-12-01 16:13:46 -08:00
2026-01-12 10:54:47 +01:00
2025-10-20 20:22:26 +02:00
2025-12-05 14:36:21 -08:00
2025-10-20 20:22:26 +02:00
2025-12-06 14:01:20 -08:00
2025-12-19 16:43:40 +01:00
2025-11-16 01:35:04 -05:00
2025-11-04 19:10:33 -08:00
2025-12-24 13:58:04 +01:00
2026-01-19 08:40:36 +01:00
2025-10-20 20:22:26 +02:00
2026-01-10 06:39:20 -10:00
2025-12-03 10:00:17 +09:00
2025-10-20 20:22:26 +02:00
2026-01-18 11:23:10 -05:00
2025-12-09 12:06:20 +09:00
2025-12-13 20:55:12 +12:00
2025-10-20 20:22:26 +02:00
2026-01-26 09:30:48 -08:00
2026-01-26 09:30:48 -08:00
2025-12-03 20:08:32 -08:00
2025-12-03 20:08:32 -08:00
2025-12-05 16:30:56 -08:00
2025-12-01 14:18:01 -08:00
2025-12-05 14:36:21 -08:00
2026-01-14 17:06:02 +01:00
2025-12-01 09:02:34 -08:00
2025-11-26 17:05:47 -05:00
2026-01-11 06:09:11 -10:00
2025-12-01 09:02:34 -08:00
2025-12-23 16:14:43 +01:00
2025-12-30 17:56:26 -08:00
2025-12-01 15:22:40 -08:00
2025-12-24 13:30:24 +01:00
2026-01-26 09:30:48 -08:00
2026-01-02 13:43:41 -05:00
2026-01-09 05:57:57 -10:00
2025-12-06 14:01:20 -08:00
2025-12-01 11:58:06 +02:00
2025-12-19 07:41:17 +12:00
2025-12-05 13:52:43 -08:00
2025-12-13 20:55:12 +12:00
2025-12-01 14:18:01 -08:00
2025-10-20 20:22:26 +02:00
2025-12-01 09:02:34 -08:00
2025-12-05 16:16:20 -08:00
2025-12-08 15:32:15 -08:00
2025-12-05 14:36:21 -08:00
2025-10-20 20:22:26 +02:00
2025-10-20 20:22:26 +02:00
2025-10-20 20:22:26 +02:00
2025-12-05 14:36:21 -08:00
2025-12-05 13:52:43 -08:00
2026-01-13 09:56:58 +01:00
2026-01-26 09:30:48 -08:00
2025-10-20 20:22:26 +02:00
2025-11-26 15:16:35 +01:00
2025-11-16 01:35:03 -05:00
2025-12-09 08:50:27 +09:00
2025-10-20 20:22:26 +02:00
2025-10-20 20:22:26 +02:00
2026-01-12 10:54:47 +01:00
2025-09-29 15:55:20 -07:00
2026-01-16 09:09:41 -08:00
2025-12-01 09:02:34 -08:00
2025-11-04 12:36:33 +01:00
2025-11-28 12:42:31 +01:00
2025-11-12 09:38:34 +01:00
2025-12-01 13:45:41 -08:00
2025-11-04 08:33:33 +01:00
2025-12-05 14:36:21 -08:00
2025-12-01 10:26:38 -08:00
2025-12-03 17:24:33 -08:00
2025-12-05 13:52:43 -08:00
2026-01-16 19:15:14 +01:00
2025-10-20 20:22:26 +02:00
2025-11-28 12:42:31 +01:00
2025-11-28 12:42:32 +01:00
2025-12-02 08:48:53 -08:00
2025-11-12 09:38:37 +01:00
2025-11-28 12:42:31 +01:00
2025-12-19 07:41:17 +12:00
2025-10-07 12:48:33 +02:00
2025-12-01 17:32:07 -08:00
2025-11-05 09:51:30 +01:00
2025-11-05 22:51:23 +01:00
2026-01-26 09:30:48 -08:00
2025-11-12 09:38:36 +01:00
2025-12-24 13:33:24 +01:00
2025-12-05 14:36:21 -08:00
2025-10-02 18:18:33 -07:00
2025-12-16 00:57:29 -05:00
2026-01-09 05:57:57 -10:00
2025-11-05 09:51:30 +01:00
2025-11-11 10:01:31 +01:00
2025-12-24 13:33:24 +01:00
2025-12-01 17:32:07 -08:00
2025-12-01 17:32:07 -08:00
2025-12-01 17:32:07 -08:00
2026-01-06 23:08:12 +01:00
2025-12-05 11:15:37 -08:00
2025-11-12 09:38:34 +01:00
2026-01-12 10:57:34 +01:00
2025-11-04 08:28:34 +01:00
2025-11-28 12:42:32 +01:00
2025-11-25 10:11:16 +01:00
2025-12-05 15:52:30 -08:00
2025-12-01 09:20:51 -08:00
2025-11-28 12:42:32 +01:00
2025-12-05 13:52:43 -08:00
2025-12-01 15:34:41 -08:00
2025-11-12 09:38:34 +01:00