Skip to content

Commit 111d36d

Browse files
Darrick J. Wongcmaiolino
authored andcommitted
xfs: lock dquot buffer before detaching dquot from b_li_list
We have to lock the buffer before we can delete the dquot log item from the buffer's log item list. Cc: [email protected] # v6.13-rc3 Fixes: acc8f86 ("xfs: attach dquot buffer to dquot log item buffer") Signed-off-by: Darrick J. Wong <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Carlos Maiolino <[email protected]>
1 parent 7ee7c9b commit 111d36d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fs/xfs/xfs_dquot.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,9 @@ xfs_dquot_detach_buf(
8787
}
8888
spin_unlock(&qlip->qli_lock);
8989
if (bp) {
90+
xfs_buf_lock(bp);
9091
list_del_init(&qlip->qli_item.li_bio_list);
91-
xfs_buf_rele(bp);
92+
xfs_buf_relse(bp);
9293
}
9394
}
9495

0 commit comments

Comments
 (0)