Whamcloud - gitweb
b=21320
authorpanda <panda>
Mon, 16 Nov 2009 21:56:59 +0000 (21:56 +0000)
committerpanda <panda>
Mon, 16 Nov 2009 21:56:59 +0000 (21:56 +0000)
i=Mike
i=Johann
i=Yong Fan

reinitialise rq_timed_list when needed

lustre/ptlrpc/service.c

index 60deefd..5714aad 100644 (file)
@@ -881,7 +881,7 @@ static int ptlrpc_at_check_timed(struct ptlrpc_service *svc)
                 list_for_each_entry_safe(rq, n, &array->paa_reqs_array[index],
                                          rq_timed_list) {
                         if (rq->rq_deadline <= now + at_early_margin) {
-                                list_del(&rq->rq_timed_list);
+                                list_del_init(&rq->rq_timed_list);
                                 /**
                                  * ptlrpc_server_drop_request() may drop
                                  * refcount to 0 already. Let's check this and