From: ericm Date: Wed, 12 Sep 2007 23:13:42 +0000 (+0000) Subject: branch: HEAD X-Git-Tag: v1_7_0_51~751 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=3a0d6497d6acc18f5817ea2823ce5a062a151771 branch: HEAD backport fix from b1_8_gssfix: remove unwrap_bulk_read() from the write path. b=13591 --- diff --git a/lustre/osc/osc_request.c b/lustre/osc/osc_request.c index c233574..8abd48d 100644 --- a/lustre/osc/osc_request.c +++ b/lustre/osc/osc_request.c @@ -1205,6 +1205,8 @@ static int osc_brw_fini_request(struct ptlrpc_request *req, int rc) if (rc < aa->aa_requested_nob) handle_short_read(rc, aa->aa_page_count, aa->aa_ppga); + sptlrpc_cli_unwrap_bulk_read(req, rc, aa->aa_page_count, aa->aa_ppga); + if (unlikely(body->oa.o_valid & OBD_MD_FLCKSUM)) { static int cksum_counter; __u32 server_cksum = body->oa.o_cksum; @@ -1269,8 +1271,6 @@ out: if (rc >= 0) *aa->aa_oa = body->oa; - sptlrpc_cli_unwrap_bulk_read(req, rc, aa->aa_page_count, aa->aa_ppga); - RETURN(rc); }