commit | 73b56814949e4b376fa3e588067c96293ea8f9a5 | [log] [tgz] |
---|---|---|
author | Gao Xiang <hsiangkao@redhat.com> | Tue Aug 18 09:18:50 2020 +0800 |
committer | Gao Xiang <hsiangkao@redhat.com> | Tue Aug 18 16:05:14 2020 +0800 |
tree | 418fd0491c3c42199b91c94050eef1333196bc55 | |
parent | 2f8206a9d012379502e409cf0a8895fb06b7a540 [diff] |
xfs: introduce perag iunlink lock Currently, we use AGI buffer lock to protect in-memory linked list for unlinked inodes but since it's not necessary to modify AGI unless the head of the unlinked list is modified. Therefore, let's add another per-AG dedicated lock to protect the whole list, and get rid of taking AGI buffer lock in xfs_iunlink_remove() if the head is untouched. Signed-off-by: Gao Xiang <hsiangkao@redhat.com>