Whamcloud - gitweb
LU-2550 osc: set resend count properly
authorNiu Yawei <niu@whamcloud.com>
Mon, 28 Jan 2013 04:25:00 +0000 (23:25 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Sun, 17 Feb 2013 06:00:19 +0000 (01:00 -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: If02f0f9abeb316f0718d34d0d1858985209acbb0
Reviewed-on: http://review.whamcloud.com/5184
Tested-by: Hudson
Reviewed-by: Johann Lombardi <johann.lombardi@intel.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Bobi Jam <bobijam@gmail.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
lustre/osc/osc_request.c

index 95f27f7..1107c5b 100644 (file)
@@ -1817,6 +1817,7 @@ static int osc_brw_redo_request(struct ptlrpc_request *request,
         CFS_INIT_LIST_HEAD(&new_aa->aa_oaps);
         cfs_list_splice(&aa->aa_oaps, &new_aa->aa_oaps);
         CFS_INIT_LIST_HEAD(&aa->aa_oaps);
+        new_aa->aa_resends = aa->aa_resends;
 
         cfs_list_for_each_entry(oap, &new_aa->aa_oaps, oap_rpc_item) {
                 if (oap->oap_request) {