the end of processing all log buffers that can be processed, there is
a (debug only) double-check to make sure that log buffers with
completed I/O don't get marooned when the function completes. The
check only needs to go to the first buffer that will cause an I/O
completion, that has not completed. The loop doesn't stop a WANT_SYNC
state buffer is found, but it should.
SGI Modid: 2.5.x-xfs:slinx:
159683a
* LOG_LOCK
* IOERROR - give up hope all ye who enter here
*/
- if (iclog->ic_state == XLOG_STATE_SYNCING ||
+ if (iclog->ic_state == XLOG_STATE_WANT_SYNC ||
+ iclog->ic_state == XLOG_STATE_SYNCING ||
iclog->ic_state == XLOG_STATE_DONE_SYNC ||
iclog->ic_state == XLOG_STATE_IOERROR )
break;