Whamcloud - gitweb
LU-2550 osc: set resend count properly
authorNiu Yawei <niu@whamcloud.com>
Mon, 14 Jan 2013 04:01:30 +0000 (23:01 -0500)
committerOleg Drokin <green@whamcloud.com>
Sat, 26 Jan 2013 03:33:20 +0000 (22:33 -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: Ifce58cf45ae3bfa3b73427f732e281b468cf982b
Reviewed-on: http://review.whamcloud.com/5012
Tested-by: Hudson
Reviewed-by: Bobi Jam <bobijam@gmail.com>
Reviewed-by: Johann Lombardi <johann.lombardi@intel.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
lustre/osc/osc_request.c

index a6e67c0..64c288d 100644 (file)
@@ -1764,6 +1764,7 @@ static int osc_brw_redo_request(struct ptlrpc_request *request,
        cfs_list_splice_init(&aa->aa_oaps, &new_aa->aa_oaps);
        CFS_INIT_LIST_HEAD(&new_aa->aa_exts);
        cfs_list_splice_init(&aa->aa_exts, &new_aa->aa_exts);
+       new_aa->aa_resends = aa->aa_resends;
 
         cfs_list_for_each_entry(oap, &new_aa->aa_oaps, oap_rpc_item) {
                 if (oap->oap_request) {