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)
commit5cd9cee98b256d94443d93a31efc36212a2bd634
tree4ef1abace997792c0da8b3c8ce40744b7a4332c5
parent60a4a22251568063c9289eb65099d7c61b4a54b0
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