Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit f1f724e4 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Alex Elder
Browse files

xfs: fix locking for inode cache radix tree tag updates



The radix-tree code requires it's users to serialize tag updates
against other updates to the tree.  While XFS protects tag updates
against each other it does not serialize them against updates of the
tree contents, which can lead to tag corruption.  Fix the inode
cache to always take pag_ici_lock in exclusive mode when updating
radix tree tags.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reported-by: default avatarPatrick Schreurs <patrick@news-service.com>
Tested-by: default avatarPatrick Schreurs <patrick@news-service.com>
Signed-off-by: default avatarAlex Elder <aelder@sgi.com>
parent a14a5ab5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment