Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-2272 statahead: ll_intent_drop_lock() called in spinlock
[fs/lustre-release.git]
/
lustre
/
mdt
/
mdt_coordinator.c
diff --git
a/lustre/mdt/mdt_coordinator.c
b/lustre/mdt/mdt_coordinator.c
index
1617eeb
..
970d933
100644
(file)
--- a/
lustre/mdt/mdt_coordinator.c
+++ b/
lustre/mdt/mdt_coordinator.c
@@
-227,9
+227,8
@@
static int mdt_coordinator_cb(const struct lu_env *env,
RETURN(-ENOMEM);
}
hal->hal_version = HAL_VERSION;
RETURN(-ENOMEM);
}
hal->hal_version = HAL_VERSION;
- strncpy(hal->hal_fsname, hsd->fs_name,
- MTI_NAME_MAXLEN);
- hal->hal_fsname[MTI_NAME_MAXLEN] = '\0';
+ strlcpy(hal->hal_fsname, hsd->fs_name,
+ MTI_NAME_MAXLEN + 1);
hal->hal_compound_id = larr->arr_compound_id;
hal->hal_archive_id = larr->arr_archive_id;
hal->hal_flags = larr->arr_flags;
hal->hal_compound_id = larr->arr_compound_id;
hal->hal_archive_id = larr->arr_archive_id;
hal->hal_flags = larr->arr_flags;
@@
-869,9
+868,9
@@
int mdt_hsm_cdt_init(struct mdt_device *mdt)
init_rwsem(&cdt->cdt_request_lock);
mutex_init(&cdt->cdt_restore_lock);
init_rwsem(&cdt->cdt_request_lock);
mutex_init(&cdt->cdt_restore_lock);
-
CFS_
INIT_LIST_HEAD(&cdt->cdt_requests);
-
CFS_
INIT_LIST_HEAD(&cdt->cdt_agents);
-
CFS_
INIT_LIST_HEAD(&cdt->cdt_restore_hdl);
+ INIT_LIST_HEAD(&cdt->cdt_requests);
+ INIT_LIST_HEAD(&cdt->cdt_agents);
+ INIT_LIST_HEAD(&cdt->cdt_restore_hdl);
rc = lu_env_init(&cdt->cdt_env, LCT_MD_THREAD);
if (rc < 0)
rc = lu_env_init(&cdt->cdt_env, LCT_MD_THREAD);
if (rc < 0)