var newTasks []*internalTask
if len(tr.newlyWrittenTasks) != 0 {
clear(tr.newlyWrittenTasks)
tr.newlyWrittenTasks = tr.newlyWrittenTasks[:0]
// ack level would have been pinned here, we may be able to advance it now (if it's not
// explicitly pinned by another write)
tr.advanceAckLevelLocked()
}
// If a backoff timer fired while readPending was still true, its maybeReadTasksLocked call