From 61d7258bf144ff388f51d0a3b295a7493fe10035 Mon Sep 17 00:00:00 2001 From: Oleg Drokin Date: Sun, 22 Jun 2014 21:32:06 -0400 Subject: [PATCH] staging/lustre/ptlrpc: Protect request buffer changing *_enlarge_reqbuf class of functions can change request body location for a request that's already in replay list, as such a parallel traverser of the list (after_reply -> ptlrpc_free_committed) might access freed and scrambled memory causing assertion. Since all such users only can get to this request under imp_lock, take imp_lock to protect against them in *_enlarge_reqbuf Signed-off-by: Oleg Drokin Reviewed-on: http://review.whamcloud.com/10074 Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3333 Reviewed-by: Mike Pershin Reviewed-by: Andreas Dilger Signed-off-by: Greg Kroah-Hartman --- Reading git-format-patch failed