Whamcloud - gitweb
branch: b1_6
authorericm <ericm>
Wed, 25 Jun 2008 17:59:23 +0000 (17:59 +0000)
committerericm <ericm>
Wed, 25 Jun 2008 17:59:23 +0000 (17:59 +0000)
drop request with 0 timeout estimation.
b=14071
r=nathan
r=robert

lustre/ptlrpc/service.c

index cc54a41..276689b 100644 (file)
@@ -935,8 +935,11 @@ ptlrpc_server_handle_req_in(struct ptlrpc_service *svc)
                     MSGHDR_AT_SUPPORT) ? 
                    /* The max time the client expects us to take */
                    lustre_msg_get_timeout(req->rq_reqmsg) : obd_timeout;
-        LASSERT(deadline > 0);
         req->rq_deadline = req->rq_arrival_time.tv_sec + deadline;
+        if (unlikely(deadline == 0)) {
+                DEBUG_REQ(D_ERROR, req, "Dropping request with 0 timeout");
+                goto err_req;
+        }
         
         ptlrpc_at_add_timed(req);