Whamcloud - gitweb
LU-884 osc: async osc_check_rpcs()
authorJinshan Xiong <jinshan.xiong@whamcloud.com>
Wed, 4 Jan 2012 18:28:29 +0000 (10:28 -0800)
committerOleg Drokin <green@whamcloud.com>
Tue, 10 Jan 2012 18:17:46 +0000 (13:17 -0500)
commit1457c38acde9001ab9fadac676714edfe9607179
tree98212774e6b28763d1003b21e5d3c2be23e3d042
parent6f5813d36102a19f314c9aab409972e8a9f1112b
LU-884 osc: async osc_check_rpcs()

Add a new "async" parameter to osc_check_rpcs(); if it is called with
async, it will compose a fake ptlrpc_request so that RPCs will be
composed and issued in ptlrpcd context.

Signed-off-by: Jinshan Xiong <jinshan.xiong@whamcloud.com>
Change-Id: I1c2f8ae43da8146428c474f17ddf3dc23a2df9ef
Reviewed-on: http://review.whamcloud.com/1825
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
Reviewed-by: Niu Yawei <niu@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/obd.h
lustre/osc/osc_internal.h
lustre/osc/osc_request.c
lustre/ptlrpc/pack_generic.c
lustre/tests/sanity.sh