staging/lustre/ptlrpc: hold rq_lock when modify rq_flags
authorNiu Yawei <yawei.niu@intel.com>
Mon, 2 Feb 2015 02:52:12 +0000 (21:52 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Feb 2015 09:31:10 +0000 (17:31 +0800)
commitd27f9b077e113b0fa46e466465233a5e51085228
treec9060b65f40d4eaa340d3d529c2ec064cd727694
parent70c86ace9008f83f3b3b0dd995c60942e1057347
staging/lustre/ptlrpc: hold rq_lock when modify rq_flags

In after_reply(), take the rq_lock for changing the rq_resend.

Signed-off-by: Niu Yawei <yawei.niu@intel.com>
Reviewed-on: http://review.whamcloud.com/11957
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5633
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: Johann Lombardi <johann.lombardi@intel.com>
Signed-off-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/ptlrpc/client.c