diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-01-25 03:42:04 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:09:49 +0300 |
commit | 834dc29d521d34718602bfb8d93d370093a5d430 (patch) | |
tree | fdb9d98fd428d97f30ff9df3baa1b295212ef45b /fs/bcachefs | |
parent | 87ced107f37fc017d34b8f56afeb7daa06c87310 (diff) | |
download | linux-834dc29d521d34718602bfb8d93d370093a5d430.tar.xz |
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')
-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); |