diff options
author | Daniel Hill <daniel@gluo.nz> | 2023-01-06 21:11:07 +1300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:52 -0400 |
commit | 3482dd6a250397fe1dc088a16bc9e50d72f217e6 (patch) | |
tree | 8edfedcc8a1ae36e890537e7a41a6918c5fc7d02 /fs/bcachefs/errcode.h | |
parent | 0093b9e9704cc932363c66b2b072b762771ffe1f (diff) | |
download | linux-3482dd6a250397fe1dc088a16bc9e50d72f217e6.tar.gz linux-3482dd6a250397fe1dc088a16bc9e50d72f217e6.tar.bz2 linux-3482dd6a250397fe1dc088a16bc9e50d72f217e6.zip |
bcachefs: don't block reads if we're promoting
The promote path calls data_update_init() and now that we take locks here,
there's potential for promote to block our read path, just error
when we can't take the lock instead of blocking.
Signed-off-by: Daniel Hill <daniel@gluo.nz>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/errcode.h')
-rw-r--r-- | fs/bcachefs/errcode.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/errcode.h b/fs/bcachefs/errcode.h index 57f1d0a6a490..6129af6129c3 100644 --- a/fs/bcachefs/errcode.h +++ b/fs/bcachefs/errcode.h @@ -120,6 +120,7 @@ x(BCH_ERR_invalid_sb, invalid_sb_clean) \ x(BCH_ERR_invalid_sb, invalid_sb_quota) \ x(BCH_ERR_invalid, invalid_bkey) \ + x(BCH_ERR_operation_blocked, nocow_lock_blocked) \ enum bch_errcode { BCH_ERR_START = 2048, |