Whamcloud - gitweb
LU-10467 target: remove lwi arg from target_bulk_io 69/35969/7
authorMr NeilBrown <neilb@suse.com>
Fri, 23 Aug 2019 07:28:47 +0000 (17:28 +1000)
committerOleg Drokin <green@whamcloud.com>
Mon, 30 Sep 2019 23:12:09 +0000 (23:12 +0000)
commit67dd631e6075b37eac0472d7b83a1a55f2be915f
tree3d1018055822ac9e799441347f6ee9b5883705f7
parentf6df31a163806c38c734add346ed7cbfe427cce4
LU-10467 target: remove lwi arg from target_bulk_io

The callers of target_bulk_io() pass in an lwi pointer but never put
any information into it or take any information out of it.  Also
target_bulk_io() always re-initializes the struct before using it, so
it doesn't communicate info from one call to the next.

All that this achieves it to make stack usage slightly less
in the few cases where the lwi pointer is tti_wait_info in
struct tgt_thread_info.  That is not worth it, and a future
patch will remove the use of the struct completely.

So make lwi local to target_bulk_io, and remove it from
all callers.

Test-Parameters: trivial
Signed-off-by: Mr NeilBrown <neilb@suse.com>
Change-Id: Ib6039006d0168393abf3995877acde2d7c796b1f
Reviewed-on: https://review.whamcloud.com/35969
Reviewed-by: Mike Pershin <mpershin@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Patrick Farrell <pfarrell@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/lustre_lib.h
lustre/ldlm/ldlm_lib.c
lustre/mgs/mgs_nids.c
lustre/ptlrpc/nodemap_storage.c
lustre/target/out_handler.c
lustre/target/tgt_handler.c
lustre/target/tgt_internal.h