From: Alexander.Boyko Date: Mon, 23 Jun 2014 01:32:12 +0000 (-0400) Subject: staging/lustre/ptlrpc: race at req processing X-Git-Tag: omap-for-v3.17/fixes-against-rc2~166^2~1355 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c689e689baa5a8a239a8b5d29c3fb77aa62f134;p=pandora-kernel.git staging/lustre/ptlrpc: race at req processing Race between ptlrpc_resend_req() and ptlrpc_check_set(). 1 thread do ptlrpc_check_set()->after_reply() 2 thread do ptlrpc_resend_req() The result is request with rq_resend = 1 and MSG_REPLY flag. When this request will came to server it will cause client eviction. The patch skip ptlrpc_resend_req logic if rq_replied is set, and clear rq_resend flag at reply_in_callback() when client got reply. Signed-off-by: Alexander Boyko Xyratex-bug-id: MRP-1888 Reviewed-on: http://review.whamcloud.com/10471 Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5116 Reviewed-by: Andreas Dilger Reviewed-by: Mike Pershin Reviewed-by: Chris Horn Signed-off-by: Oleg Drokin Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed