HSM _not only_ small fixes and to do list goes here
(LU-3647)
|
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | Lustre 2.5.0 |
| Fix Version/s: | Lustre 2.5.0 |
| Type: | Technical task | Priority: | Major |
| Reporter: | John Hammond | Assignee: | John Hammond |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | HSM | ||
| Rank (Obsolete): | 10080 |
| Description |
|
Due to the global KUC lists, seeing IMP_EVENT_ACTIVE on any MDC import will cause any already registered CT archive masks to be registered with the MDT behind that import. mdc_import_event(..., ..., imp, IMP_EVENT_ACTIVE)
mdc_kuc_reregister(imp)
libcfs_kkuc_group_foreach(KUC_GRP_HSM, mdc_hsm_ct_reregister, imp)
(void *)imp)
cfs_list_for_each_entry(reg, ... KUC_GRP_HSM, ...)
mdc_hsm_ct_reregister(reg->kr_reg = archives, imp)
mdc_ioc_hsm_ct_register(imp, archives)
/* Send MDS_HSM_CT_REGISTER. */
|
| Comments |
| Comment by Thomas LEIBOVICI - CEA (Inactive) [ 05/Sep/13 ] |
|
It could be fixed like this:
I see this comment in kuc: /* Broadcast groups are global across all mounted filesystems; * i.e. registering for a group on 1 fs will get messages for that * group from any fs */ And indeed it appears that a copytool registered for 1 filesystem will get requests for other filesystems. /* Broadcast to HSM listeners */
rc = libcfs_kkuc_group_put(KUC_GRP_HSM, lh);
The only check is done in the copytool code itself, based on hsm action list contents: if (strcmp(hal->hal_fsname, fs_name) != 0) {
CT_ERROR("'%s' invalid fs name, expecting: %s\n",
hal->hal_fsname, fs_name);
It would be better to filter it before, in the kuc layer, by adding the mnt point parameter to libcfs_kkuc_group_put() too. |
| Comment by Jodi Levi (Inactive) [ 06/Sep/13 ] |
|
Thomas, |
| Comment by Henri Doreau (Inactive) [ 09/Sep/13 ] |
|
Thomas is off for the next days. I can work on a patch if needed. |
| Comment by John Hammond [ 10/Sep/13 ] |
|
I agree with Thomas' approach but think it can be refined somewhat. Here is what I suggest:
|
| Comment by Henri Doreau (Inactive) [ 11/Sep/13 ] |
|
Thanks a lot John. Patch is at http://review.whamcloud.com/7612 |
| Comment by Peter Jones [ 02/Oct/13 ] |
|
Landed for 2.5.0 |