Skip to content

Commit a8985ac

Browse files
fdmananakdave
authored andcommitted
btrfs: assert delayed refs lock is held at add_delayed_ref_head()
The delayed refs lock must be held when calling add_delayed_ref_head(), so assert that it's being held. Reviewed-by: Boris Burkov <boris@bur.io> Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
1 parent 64a71f0 commit a8985ac

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

fs/btrfs/delayed-ref.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -886,6 +886,7 @@ add_delayed_ref_head(struct btrfs_trans_handle *trans,
886886
bool qrecord_inserted = false;
887887

888888
delayed_refs = &trans->transaction->delayed_refs;
889+
lockdep_assert_held(&delayed_refs->lock);
889890

890891
/* Record qgroup extent info if provided */
891892
if (qrecord) {

0 commit comments

Comments
 (0)