When the state queue task manager transfered an automount point pending task to its task queue for execution the state queue as mistakenly being seen as empty when the completing task was the only task in the state queue. ---
CHANGELOG | 1 + daemon/state.c | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 347d7d7..a9687b7 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -62,6 +62,7 @@ - fix mountd vers retry. - fix expire race. - replace GPLv3 code. +- fix next task list update. 03/09/2009 autofs-5.0.5 ----------------------- diff --git a/daemon/state.c b/daemon/state.c index 38617c3..85587bd 100644 --- a/daemon/state.c +++ b/daemon/state.c @@ -1150,11 +1150,13 @@ remove: next = list_entry((&task->pending)->next, struct state_queue, pending); - list_del_init(&next->pending); - list_add_tail(&next->list, p); - list_del(&task->list); free(task); + + list_del_init(&next->pending); + list_add_tail(&next->list, head); + if (p == head) + p = head->next; } if (list_empty(head)) _______________________________________________ autofs mailing list autofs@linux.kernel.org http://linux.kernel.org/mailman/listinfo/autofs