[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)
commiteb01c9cd87c7a9998c2edf209721ea069e3e3652
tree201fc07dac684d6a5a789995c8c35918ea16de7f
parent114d23aae51233b2bc62d8e2a632bcb55de1953d
[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