Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 37143
b: refs/heads/master
c: a3c6685
h: refs/heads/master
i:
  37141: 2823763
  37139: afebe4e
  37135: cd6010c
v: v3
  • Loading branch information
Nathan Scott authored and Tim Shimmin committed Sep 28, 2006
1 parent b16579c commit b38d684
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bb3c7d2936b6db6f5ded9abf4d215abe97af8372
refs/heads/master: a3c6685eaa1b6c5cf05b084b3bc91895e253ad2c
9 changes: 7 additions & 2 deletions trunk/fs/xfs/xfs_log.c
Original file line number Diff line number Diff line change
Expand Up @@ -2212,9 +2212,13 @@ xlog_state_do_callback(

iclog = iclog->ic_next;
} while (first_iclog != iclog);
if (repeats && (repeats % 10) == 0) {

if (repeats > 5000) {
flushcnt += repeats;
repeats = 0;
xfs_fs_cmn_err(CE_WARN, log->l_mp,
"xlog_state_do_callback: looping %d", repeats);
"%s: possible infinite loop (%d iterations)",
__FUNCTION__, flushcnt);
}
} while (!ioerrors && loopdidcallbacks);

Expand Down Expand Up @@ -2246,6 +2250,7 @@ xlog_state_do_callback(
}
#endif

flushcnt = 0;
if (log->l_iclog->ic_state & (XLOG_STATE_ACTIVE|XLOG_STATE_IOERROR)) {
flushcnt = log->l_flushcnt;
log->l_flushcnt = 0;
Expand Down

0 comments on commit b38d684

Please sign in to comment.