xfs: acquire ->ail_lock from xfs_trans_ail_delete()
authorBrian Foster <bfoster@redhat.com>
Wed, 6 May 2020 20:25:23 +0000 (13:25 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 7 May 2020 15:27:47 +0000 (08:27 -0700)
commit849274c103aeb149f23a81ba4a6bab42a5d77a78
treec4aacab947b522b18434b30b92949a6ad34e40a7
parentb707fffda6a3e1d0a46fceaa4c3f6c06b90f448a
xfs: acquire ->ail_lock from xfs_trans_ail_delete()

Several callers acquire the lock just prior to the call. Callers
that require ->ail_lock for other purposes already check IN_AIL
state and thus don't require the additional shutdown check in the
helper. Push the lock down into xfs_trans_ail_delete(), open code
the instances that still acquire it, and remove the unnecessary ailp
parameter.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Allison Collins <allison.henderson@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_buf_item.c
fs/xfs/xfs_dquot.c
fs/xfs/xfs_trans_ail.c
fs/xfs/xfs_trans_priv.h