diff options
| author | Filipe Manana <[email protected]> | 2024-11-15 15:46:13 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2024-11-29 15:46:47 +0000 |
| commit | ed67f2a913a4f0fc505db29805c41dd07d3cb356 (patch) | |
| tree | 7a083de52f20427b6d28a97461ff7731f58978e0 /security/selinux/hooks.c | |
| parent | btrfs: sysfs: advertise experimental features only if CONFIG_BTRFS_EXPERIMENT... (diff) | |
| download | kernel-ed67f2a913a4f0fc505db29805c41dd07d3cb356.tar.gz kernel-ed67f2a913a4f0fc505db29805c41dd07d3cb356.zip | |
btrfs: don't loop for nowait writes when checking for cross references
When checking for delayed refs when verifying if there are cross
references for a data extent, we stop if the path has nowait set and we
can't try lock the delayed ref head's mutex, returning -EAGAIN with the
goal of making a write fallback to a blocking context. However we ignore
the -EAGAIN at btrfs_cross_ref_exist() when check_delayed_ref() returns
it, and keep looping instead of immediately returning the -EAGAIN to the
caller.
Fix this by not looping if we get -EAGAIN and we have a nowait path.
Fixes: 26ce91144631 ("btrfs: make can_nocow_extent nowait compatible")
CC: [email protected] # 6.1+
Reviewed-by: Josef Bacik <[email protected]>
Signed-off-by: Filipe Manana <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions
