Whamcloud - gitweb
LU-1717 ldlm: Fix rs_opc initialization
authorLi Wei <liwei@whamcloud.com>
Mon, 15 Oct 2012 01:29:36 +0000 (09:29 +0800)
committerOleg Drokin <green@whamcloud.com>
Mon, 15 Oct 2012 23:54:32 +0000 (19:54 -0400)
commit54d7c3fc1cb808676dbf337b83cd04c51925242d
treebdd31adfb0d5a35552ed7482743a182e56e02196
parent4e9958fb4e6e96f2a7367d734da8f4597fc07243
LU-1717 ldlm: Fix rs_opc initialization

By the time target_send_reply() initializes rs_opc, rs_msg has not been
filled with a valid opc yet.  Following Oleg's suggestion on the Jira
ticket, this patch changes target_send_reply() to initialize rs_opc with
rq_reqmsg instead and silences a couple of related warnings that are of
only informative nature.

Change-Id: I4b96454e0bcf3dd0dc8f21b0de70a89ce37faacf
Signed-off-by: Li Wei <liwei@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/4271
Tested-by: Hudson
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
lustre/ldlm/ldlm_lib.c
lustre/mdt/mdt_recovery.c
lustre/ptlrpc/service.c