Whamcloud - gitweb
b=21574 schedule ping asap instead of delaying it
authorJohann Lombardi <johann@sun.com>
Sat, 16 Jan 2010 14:19:03 +0000 (15:19 +0100)
committerJohann Lombardi <johann@sun.com>
Sat, 16 Jan 2010 14:19:03 +0000 (15:19 +0100)
i=oleg
i=andrew

The intent was to schedule a ping as soon as possible to know
sooner rather than later that the transno has been committed.
This is used by the async journal feature to unpin pages
in memory sooner.

lustre/ptlrpc/client.c

index 1ddb24a..ef872ec 100644 (file)
@@ -1088,7 +1088,7 @@ static int after_reply(struct ptlrpc_request *req)
                 ptlrpc_free_committed(imp);
 
                 if (req->rq_transno > imp->imp_peer_committed_transno)
-                        ptlrpc_pinger_sending_on_import(imp);
+                        ptlrpc_pinger_commit_expected(imp);
                 spin_unlock(&imp->imp_lock);
         }