mirror of
https://github.com/torvalds/linux.git
synced 2026-03-14 00:56:20 +01:00
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: stable@vger.kernel.org # v6.13-rc3
Fixes: acc8f8628c ("xfs: attach dquot buffer to dquot log item buffer")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
This commit is contained in:
parent
7ee7c9b39e
commit
111d36d627
1 changed files with 2 additions and 1 deletions
|
|
@ -87,8 +87,9 @@ xfs_dquot_detach_buf(
|
|||
}
|
||||
spin_unlock(&qlip->qli_lock);
|
||||
if (bp) {
|
||||
xfs_buf_lock(bp);
|
||||
list_del_init(&qlip->qli_item.li_bio_list);
|
||||
xfs_buf_rele(bp);
|
||||
xfs_buf_relse(bp);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue