diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-01-24 19:42:04 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-02-03 21:48:50 -0500 |
commit | 7227ae88870492454e22fccb283e860c8fcbd8f8 (patch) | |
tree | 30e3508e921aa52489f71e22cc81ea528e71cb3b | |
parent | 7c8e761e39806b7c1934585979ca7809e50142c3 (diff) |
bcachefs: debug: Fix some locking bugs
This fixes a few error paths in debug code that lead to locks failing to
be dropped.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
-rw-r--r-- | fs/bcachefs/debug.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/bcachefs/debug.c b/fs/bcachefs/debug.c index ab210296223b..fcefd55a5322 100644 --- a/fs/bcachefs/debug.c +++ b/fs/bcachefs/debug.c @@ -520,7 +520,7 @@ static ssize_t bch2_btree_transactions_read(struct file *file, char __user *buf, ret = flush_buf(i); if (ret) - return ret; + break; bch2_btree_trans_to_text(&i->buf, trans); @@ -711,7 +711,7 @@ static ssize_t bch2_btree_deadlock_read(struct file *file, char __user *buf, ret = flush_buf(i); if (ret) - return ret; + break; bch2_check_for_deadlock(trans, &i->buf); |