X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fptlrpc%2Fclient.c;h=7f279b4fb4e324e9934fe3971c6a4c5bbe5f6258;hp=142f4e4745a6459ef575758e76736fbf6f129238;hb=859678cc6b075f7c81903e44b99bdbd18c635cbb;hpb=e99f5049f932a964c811a0dd208f31e1435cb975 diff --git a/lustre/ptlrpc/client.c b/lustre/ptlrpc/client.c index 142f4e4..7f279b4 100644 --- a/lustre/ptlrpc/client.c +++ b/lustre/ptlrpc/client.c @@ -948,12 +948,10 @@ int ptlrpc_expire_one_request(struct ptlrpc_request *req) DEBUG_REQ(D_ERROR|D_NETERROR, req, "timeout (sent at %lu, %lus ago)", (long)req->rq_sent, CURRENT_SECONDS - req->rq_sent); -#if 0 - /* Leave this out normally: it creates too much console noise and we - * only need it when we're debugging networks */ - if (imp != NULL) + + if (imp != NULL && obd_debug_peer_on_timeout) LNetCtl(IOC_LIBCFS_DEBUG_PEER, &imp->imp_connection->c_peer); -#endif + spin_lock(&req->rq_lock); req->rq_timedout = 1; spin_unlock(&req->rq_lock);