Whamcloud - gitweb
LU-8837 lmv: don't include struct lu_qos_rr in client 50/41950/6
authorMr NeilBrown <neilb@suse.de>
Mon, 8 Mar 2021 23:05:23 +0000 (10:05 +1100)
committerOleg Drokin <green@whamcloud.com>
Sat, 10 Apr 2021 17:40:06 +0000 (17:40 +0000)
commitb6882c8ae4f47e931cc7b49da1c6bffaaf31499b
treea3acff0aa7e1f2201966dcd256a2abfa8fe89302
parenta7a876a5e44125688a041679c77721416c67bb62
LU-8837 lmv: don't include struct lu_qos_rr in client

The 'lqrr' field in 'struct lu_qos' is not used on the client (lmv).
So make it server-only for use in lod.

- move 'struct lu_qos_rr' into lu_target.h
- protect lq_rr with HAVE_SERVER_SUPPORT
- make lu_qos_rr_init() a static-inline in lu_target,
  and call it explicitly from lod instead of from lu_tgt_descs_init()
- protect setting of LQ_DIRTY to in lu_tgt_descs.c with
  HAVE_SERVER_SUPPORT

Test-Parameters: trivial
Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: I019cac560d68688042a02a53bd96b605909acdcd
Reviewed-on: https://review.whamcloud.com/41950
Reviewed-by: Lai Siyao <lai.siyao@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/lu_object.h
lustre/lod/lod_dev.c
lustre/obdclass/lu_tgt_descs.c