diff options
| author | Kent Overstreet <[email protected]> | 2023-12-19 22:16:34 +0000 |
|---|---|---|
| committer | Kent Overstreet <[email protected]> | 2023-12-20 00:01:52 +0000 |
| commit | 247ce5f1bb3ea90879e8552b8edf4885b9a9f849 (patch) | |
| tree | 87ec37ba68fb1565d8da1ad84e4c2b6085ce093d /drivers/gpu/drm/drm_auth.c | |
| parent | bcachefs; guard against overflow in btree node split (diff) | |
| download | kernel-247ce5f1bb3ea90879e8552b8edf4885b9a9f849.tar.gz kernel-247ce5f1bb3ea90879e8552b8edf4885b9a9f849.zip | |
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 <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/drm_auth.c')
0 files changed, 0 insertions, 0 deletions
