Whamcloud - gitweb
LU-170 oscc_grow_count will never grow
We are using req::rq_async_args.space[0] to store original value of
oscc_grow_count, and using req::rq_async_args.pointer_arg[0] to store
oscc, however, ptlrpc_async_args is a union, which means
req::rq_async_args.space[0] will always be overwritten by a ossc (pointer),
and osc_interpret_create will always get true on this condition
"if (diff < (int) req->rq_async_args.space[0])" and reset
oscc_grow_count to OST_MIN_PRECREATE and set OSCC_FLAG_LOW.
Because it's very unsafe to use raw scratchpad directly, I also cleaned
up all using of raw scratchpad in this patch.
Change-Id: I431a37521a41c5dfbe10ebca9efac157985add51
Signed-off-by: Liang Zhen <liang@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/588
Tested-by: Hudson
Reviewed-by: Johann Lombardi <johann@whamcloud.com>