fix internal state hang in mars_copy

This commit is contained in:
Thomas Schoebel-Theuer 2012-01-31 14:05:18 +01:00 committed by Thomas Schoebel-Theuer
parent 81da8a0c1d
commit 340302e92d
1 changed files with 2 additions and 1 deletions

View File

@ -119,6 +119,7 @@ void _clear_all_mref(struct copy_brick *brick)
{
int i;
for (i = 0; i < MAX_COPY_PARA; i++) {
brick->st[i].state = COPY_STATE_START;
_clear_mref(brick, i, 0);
_clear_mref(brick, i, 1);
}
@ -353,7 +354,7 @@ int _next_state(struct copy_brick *brick, int index, loff_t pos)
}
mref0 = st->table[0];
if (unlikely(!mref0)) {
MARS_ERR("src buffer for write does not exist");
MARS_ERR("src buffer for write does not exist, state %d at index %d\n", state, index);
status = -EILSEQ;
goto done;
}