Whamcloud - gitweb
LU-9679 osc: centralize handling of PTLRPCD_SET 03/37603/2
authorNeilBrown <neilb@suse.com>
Thu, 20 Dec 2018 04:57:34 +0000 (15:57 +1100)
committerOleg Drokin <green@whamcloud.com>
Sun, 1 Mar 2020 05:35:08 +0000 (05:35 +0000)
commit029b2e0eac5399edd4b9e06afdcc237c657b7d51
tree9ab5e65b1290bc004a767bccef508388a73364de
parent6d6a85c53c7be07912e8d9e7fff4beb0871718e8
LU-9679 osc: centralize handling of PTLRPCD_SET

Various places test if a given rqset is PTLRPCD_SET
and call either ptlrpcd_add_req() or ptlrpc_set_add_req()
depending on the result.

This can be unified by putting the test of PTLRPCD_SET in
ptlrpc_set_add_req(), and always calling that function.

This results in there being only one place that tests PTLRPCD_SET.

Linux-Commit: 6a587cd4c705 ("lustre: centralize handling of
PTLRPCD_SET")

Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Signed-off-by: Mr NeilBrown <neilb@suse.com>
Change-Id: I879aa9ebb7e841dc2d1240a32d1c5d07e582e0b2
Reviewed-on: https://review.whamcloud.com/37603
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
lustre/include/lustre_net.h
lustre/osc/osc_internal.h
lustre/osc/osc_request.c
lustre/ptlrpc/client.c