diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-12-19 17:16:34 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-12-19 19:01:52 -0500 |
commit | 247ce5f1bb3ea90879e8552b8edf4885b9a9f849 (patch) | |
tree | 87ec37ba68fb1565d8da1ad84e4c2b6085ce093d /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
parent | 7ba1f6ec97c7afec5787ab8e92a6a7e24f0459aa (diff) |
bcachefs: Fix bch2_alloc_sectors_start_trans() error handling
When we fail to allocate because of insufficient open buckets, we don't
want to retry from the full set of devices - we just want to retry in
blocking mode.
But if the retry in blocking mode fails with a different error code, we
end up squashing the -BCH_ERR_open_buckets_empty error with an error
that makes us thing we won't be able to allocate (insufficient_devices)
- which is incorrect when we didn't try to allocate from the full set of
devices, and causes the write to fail.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
0 files changed, 0 insertions, 0 deletions