struct ptlrpc_request *new_req;
struct osc_brw_async_args *new_aa;
struct osc_async_page *oap;
+ bool compressed = false;
struct brw_page ***ppga;
u32 *page_count;
* original arrays (ideally we'd reuse the compressed ones)
*/
if (aa->aa_ncppga) {
+ compressed = true;
ppga = &aa->aa_ncppga;
page_count = &aa->aa_ncpage_count;
} else {
*/
aa->aa_resends++;
new_req->rq_interpret_reply = request->rq_interpret_reply;
+
+ if (compressed) {
+ new_aa = ptlrpc_req_async_args(new_aa, new_req);
+ /*
+ * These structures were changed during the resent because
+ * some conditions (like, the fact a request is not
+ * compressed on a resend) are differ.
+ */
+ aa->aa_requested_nob = new_aa->aa_requested_nob;
+ }
new_req->rq_async_args = request->rq_async_args;
new_req->rq_commit_cb = request->rq_commit_cb;
/* cap resend delay to the current request timeout, this is similar to