diff options
| author | Sidong Yang <[email protected]> | 2025-03-19 11:24:01 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2025-03-31 23:02:26 +0000 |
| commit | 8e587ab43cb92a9e57f99ea8d6c069ee65863707 (patch) | |
| tree | 1e82ee19972a0678b1982a6e0dbedb97bd81522b /drivers/fpga/tests/fpga-mgr-test.c | |
| parent | btrfs: zoned: fix zone finishing with missing devices (diff) | |
| download | kernel-8e587ab43cb92a9e57f99ea8d6c069ee65863707.tar.gz kernel-8e587ab43cb92a9e57f99ea8d6c069ee65863707.zip | |
btrfs: ioctl: don't free iov when btrfs_encoded_read() returns -EAGAIN
Fix a bug in encoded read that mistakenly frees the iov in case
btrfs_encoded_read() returns -EAGAIN assuming the structure will be
reused. This can happen when when receiving requests concurrently, the
io_uring subsystem does not reset the data, and the last free will
happen in btrfs_uring_read_finished().
Handle the -EAGAIN error and skip freeing iov.
CC: [email protected] # 6.13+
Signed-off-by: Sidong Yang <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'drivers/fpga/tests/fpga-mgr-test.c')
0 files changed, 0 insertions, 0 deletions
