Whamcloud - gitweb
LU-2550 osc: set resend count properly
authorNiu Yawei <niu@whamcloud.com>
Mon, 7 Jan 2013 09:12:33 +0000 (04:12 -0500)
committerJohann Lombardi <johann.lombardi@intel.com>
Mon, 14 Jan 2013 11:40:43 +0000 (06:40 -0500)
The resend count of new io request should be set properly
in osc_brw_redo_request().

Signed-off-by: Niu Yawei <yawei.niu@intel.com>
Change-Id: I31285df00513ad02befd84d9d37cfcbb48055bb0
Reviewed-on: http://review.whamcloud.com/4964
Reviewed-by: Bobi Jam <bobijam@gmail.com>
Reviewed-by: Johann Lombardi <johann.lombardi@intel.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
lustre/osc/osc_request.c

index 9be8ee1..4a51ed0 100644 (file)
@@ -1691,6 +1691,7 @@ static int osc_brw_redo_request(struct ptlrpc_request *request,
         CFS_INIT_LIST_HEAD(&new_aa->aa_oaps);
         list_splice(&aa->aa_oaps, &new_aa->aa_oaps);
         CFS_INIT_LIST_HEAD(&aa->aa_oaps);
+        new_aa->aa_resends = aa->aa_resends;
 
         list_for_each_entry(oap, &new_aa->aa_oaps, oap_rpc_item) {
                 if (oap->oap_request) {