]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: log recovery tracepoints to track current lsn and buffer submission
authorBrian Foster <bfoster@redhat.com>
Sun, 25 Sep 2016 22:34:52 +0000 (08:34 +1000)
committerDave Chinner <david@fromorbit.com>
Sun, 25 Sep 2016 22:34:52 +0000 (08:34 +1000)
commit606dba83c6245639002bc26ff0e5e9f9ef00b775
tree4ef1abace997792c0da8b3c8ce40744b7a4332c5
parent94dad64308eea05efc7d184206838b6d0d9b6adf
xfs: log recovery tracepoints to track current lsn and buffer submission

Log recovery has particular rules around buffer submission along with
tricky corner cases where independent transactions can share an LSN. As
such, it can be difficult to follow when/why buffers are submitted
during recovery.

Add a couple tracepoints to post the current LSN of a record when a new
record is being processed and when a buffer is being skipped due to LSN
ordering. Also, update the recover item class to include the LSN of the
current transaction for the item being processed.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_log_recover.c
fs/xfs/xfs_trace.h