]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: switch to NOFS allocation under i_lock in xfs_attr_rmtval_set
authorChristoph Hellwig <hch@infradead.org>
Sat, 18 Jul 2009 22:14:59 +0000 (18:14 -0400)
committerFelix Blyakher <felixb@sgi.com>
Wed, 12 Aug 2009 06:07:44 +0000 (01:07 -0500)
commit76a27fdc2e2e5cde85e23a17b7f53625dd929f93
tree5109c89eed3c087cf5889297881a5dc5d9efd3ce
parentbcc50b1cdf3882aa88fac518ac4d64cff386f74c
xfs: switch to NOFS allocation under i_lock in xfs_attr_rmtval_set

xfs_attr_rmtval_set is always called with i_lock held, and i_lock is taken
in reclaim context so all allocations under it must avoid recursions into
the filesystem.

Reported by the new reclaim context tracing in lockdep.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Felix Blyakher <felixb@sgi.com>
Signed-off-by: Felix Blyakher <felixb@sgi.com>
fs/xfs/xfs_attr.c