Whamcloud - gitweb
branch: b1_8
authorericm <ericm>
Fri, 23 Oct 2009 22:46:27 +0000 (22:46 +0000)
committerericm <ericm>
Fri, 23 Oct 2009 22:46:27 +0000 (22:46 +0000)
fix ost bulk read/write busy waiting.
b=20444
r=rread
r=wangdi

lustre/ost/ost_handler.c

index e344f67..5e0f3d9 100644 (file)
@@ -799,7 +799,7 @@ static int ost_brw_read(struct ptlrpc_request *req, struct obd_trans_info *oti)
                         do {
                                 long timeoutl = req->rq_deadline -
                                         cfs_time_current_sec();
-                                cfs_duration_t timeout = (timeoutl <= 0 || rc) ?
+                                cfs_duration_t timeout = timeoutl <= 0 ?
                                         CFS_TICK : cfs_time_seconds(timeoutl);
                                 lwi = LWI_TIMEOUT_INTERVAL(timeout,
                                                            cfs_time_seconds(1),
@@ -1033,7 +1033,7 @@ static int ost_brw_write(struct ptlrpc_request *req, struct obd_trans_info *oti)
                 do {
                         long timeoutl = req->rq_deadline -
                                 cfs_time_current_sec();
-                        cfs_duration_t timeout = (timeoutl <= 0 || rc) ?
+                        cfs_duration_t timeout = timeoutl <= 0 ?
                                 CFS_TICK : cfs_time_seconds(timeoutl);
                         lwi = LWI_TIMEOUT_INTERVAL(timeout, cfs_time_seconds(1),
                                                    ost_bulk_timeout, desc);