]> git.baikalelectronics.ru Git - kernel.git/commit
[XFS] Remove the xlog_ticket allocator
authorDavid Chinner <dgc@sgi.com>
Thu, 10 Apr 2008 02:18:46 +0000 (12:18 +1000)
committerLachlan McIlroy <lachlan@redback.melbourne.sgi.com>
Fri, 18 Apr 2008 01:50:39 +0000 (11:50 +1000)
commit525cac931a0d339d2ef3aad0a46c7f298279e666
tree201fc07dac684d6a5a789995c8c35918ea16de7f
parent555165b26f363bc6cdcd58b1c4de78372e68d11a
[XFS] Remove the xlog_ticket allocator

The ticket allocator is just a simple slab implementation internal to the
log. It requires the icloglock to be held when manipulating it and this
contributes to contention on that lock.

Just kill the entire allocator and use a memory zone instead. While there,
allow us to gracefully fail allocation with ENOMEM.

SGI-PV: 978729
SGI-Modid: xfs-linux-melb:xfs-kern:30771a

Signed-off-by: David Chinner <dgc@sgi.com>
Signed-off-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
fs/xfs/xfs_log.c
fs/xfs/xfs_log_priv.h
fs/xfs/xfs_vfsops.c