dm log writes: fix incorrect comment about the logged sequence example
authorQu Wenruo <wqu@suse.com>
Tue, 18 Jun 2019 05:39:38 +0000 (13:39 +0800)
committerMike Snitzer <snitzer@redhat.com>
Tue, 9 Jul 2019 18:13:33 +0000 (14:13 -0400)
dm-log-writes records the sequence of completion, not submission, thus
for the following sequence (W=write, C=complete):

  Wa,Wb,Wc,Cc,Ca,FLUSH,FUAd,Cb,CFLUSH,CFUAd

The logged results in log device should be:
  c,a,b,flush,fua

Fix the comment to give a better example.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-log-writes.c

index 0837b17e17988e9bfd46d389ed0d60ef3086e4d9..99721c76225d832e8de333a722c6a0ab78ab7a48 100644 (file)
@@ -40,7 +40,7 @@
  *
  * Would result in the log looking like this:
  *
- * c,a,flush,fuad,b,<other writes>,<next flush>
+ * c,a,b,flush,fuad,<other writes>,<next flush>
  *
  * This is meant to help expose problems where file systems do not properly wait
  * on data being written before invoking a FLUSH.  FUA bypasses cache so once it