]> git.baikalelectronics.ru Git - kernel.git/commit
[XFS] Make xfs_ail_check check less by default
authorDavid Chinner <dgc@sgi.com>
Tue, 5 Feb 2008 01:13:38 +0000 (12:13 +1100)
committerLachlan McIlroy <lachlan@redback.melbourne.sgi.com>
Thu, 7 Feb 2008 07:23:05 +0000 (18:23 +1100)
commitc40b4fe6c67249475918973432d5d09b36b21577
tree178aab8a805b8b44d593f9e96eae5fd3cb792ff9
parent2c0fdcbe7f592a1d51e0e8a3221f9cd51dd6260f
[XFS] Make xfs_ail_check check less by default

Checking the entire AIL on every insert and remove is prohibitively
expensive - the sustained sequntial create rate on a single disk drops
from about 1800/s to 60/s because of this checking resulting in the
xfslogd becoming cpu bound.

By default on debug builds, only check the next and previous entries in
the list to ensure they are ordered correctly. If you really want, define
XFS_TRANS_DEBUG to use the old behaviour.

SGI-PV: 972759
SGI-Modid: xfs-linux-melb:xfs-kern:30372a

Signed-off-by: David Chinner <dgc@sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
fs/xfs/xfs_trans_ail.c