Whamcloud - gitweb
LU-10341 hsm: filter kkuc write by client UUID 19/30719/2
authorJohn L. Hammond <john.hammond@intel.com>
Thu, 7 Dec 2017 02:21:48 +0000 (20:21 -0600)
committerJohn L. Hammond <john.hammond@intel.com>
Fri, 9 Feb 2018 16:57:53 +0000 (16:57 +0000)
commit10329bd6e9c8bb58ddf71cc1ce03d82bc6a731d8
tree9da876b2bde9bbe9b6dee773791e2dd523b209a2
parentf8736cdfe48ca70a6d293d55ad184dc6b34af312
LU-10341 hsm: filter kkuc write by client UUID

Add a struct obd_uuid kr_uuid member to struct kkuc_reg to hold the
UUID of the client (super block) that owns the kkuc pipe. Modify
libcfs_kkuc_group_{put,rem,foreach}() to accept a UUID pointer which
filters the kkuc pipes operated on. Modify mdc_hsm_copytool_send() to
pass the UUID of the MDC device when calling
libcfs_kkuc_group_put(). The effect of all this is that HALs received
by a given MDC will only be delivered to copytools registered on the
corresponding mount point.

Remove the cluuid member of struct lmv_obd since it is always the same
as the obd_uuid member of the corresponding struct obd_device. Remove
the kcd_uuid member of struct kkuc_ct_data as it is no longer needed.

Lustre-change: https://review.whamcloud.com/30419
Lustre-commit: c73736545fafac4373569187e064aab9cd435320

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: Ibbda253979739a1d56d3e132a51a482a02a0ec27
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: Faccini Bruno <bruno.faccini@intel.com>
Signed-off-by: Minh Diep <minh.diep@intel.com>
Reviewed-on: https://review.whamcloud.com/30719
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
lustre/include/lustre_export.h
lustre/include/lustre_kernelcomm.h
lustre/include/obd.h
lustre/lmv/lmv_obd.c
lustre/mdc/mdc_request.c
lustre/obdclass/kernelcomm.c