Whamcloud - gitweb
LU-10341 hsm: filter kkuc write by client UUID 19/30419/2
authorJohn L. Hammond <john.hammond@intel.com>
Thu, 7 Dec 2017 02:21:48 +0000 (20:21 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 4 Jan 2018 02:49:20 +0000 (02:49 +0000)
commitc73736545fafac4373569187e064aab9cd435320
tree33b79affa9e821997b8ee24dee7d01713ceb386e
parent27b4374912f81d1270cdf4d58f9fcefe05b3d7c0
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.

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: Ibbda253979739a1d56d3e132a51a482a02a0ec27
Reviewed-on: https://review.whamcloud.com/30419
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: Faccini Bruno <bruno.faccini@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@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