summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/debug.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-01-25 01:42:04 +0100
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 23:09:49 +0200
commit834dc29d521d34718602bfb8d93d370093a5d430 (patch)
treefdb9d98fd428d97f30ff9df3baa1b295212ef45b /fs/bcachefs/debug.c
parentbcachefs: Convert EAGAIN errors to private error codes (diff)
downloadlinux-834dc29d521d34718602bfb8d93d370093a5d430.tar.xz
linux-834dc29d521d34718602bfb8d93d370093a5d430.zip
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>
Diffstat (limited to 'fs/bcachefs/debug.c')
-rw-r--r--fs/bcachefs/debug.c4
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);