diff options
Diffstat (limited to 'libbcachefs/error.h')
-rw-r--r-- | libbcachefs/error.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libbcachefs/error.h b/libbcachefs/error.h index 157ec3fa..ead36936 100644 --- a/libbcachefs/error.h +++ b/libbcachefs/error.h @@ -147,6 +147,8 @@ void bch2_flush_fsck_errs(struct bch_fs *); #define __fsck_err_on(cond, c, _flags, _err_type, ...) \ ({ \ + might_sleep(); \ + \ if (type_is(c, struct bch_fs *)) \ WARN_ON(bch2_current_has_btree_trans((struct bch_fs *) c));\ \ |