Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1602e88
)
- use FL_LOCAL for big rename lock, it is never going to be sent to other nodes.
author
yury
<yury>
Wed, 25 Oct 2006 12:50:57 +0000
(12:50 +0000)
committer
yury
<yury>
Wed, 25 Oct 2006 12:50:57 +0000
(12:50 +0000)
lustre/mdt/mdt_reint.c
patch
|
blob
|
history
diff --git
a/lustre/mdt/mdt_reint.c
b/lustre/mdt/mdt_reint.c
index
3fb783d
..
3583497
100644
(file)
--- a/
lustre/mdt/mdt_reint.c
+++ b/
lustre/mdt/mdt_reint.c
@@
-607,7
+607,7
@@
static int mdt_rename_lock(struct mdt_thread_info *info,
{
ldlm_policy_data_t policy = { .l_inodebits = { MDS_INODELOCK_UPDATE } };
struct ldlm_namespace *ns = info->mti_mdt->mdt_namespace;
{
ldlm_policy_data_t policy = { .l_inodebits = { MDS_INODELOCK_UPDATE } };
struct ldlm_namespace *ns = info->mti_mdt->mdt_namespace;
- int flags = LDLM_FL_ATOMIC_CB;
+ int flags = LDLM_FL_
LOCAL_ONLY | LDLM_FL_
ATOMIC_CB;
struct ldlm_res_id res_id;
struct lu_site *ls;
int rc;
struct ldlm_res_id res_id;
struct lu_site *ls;
int rc;
@@
-618,8
+618,8
@@
static int mdt_rename_lock(struct mdt_thread_info *info,
if (ls->ls_control_exp == NULL) {
/*
if (ls->ls_control_exp == NULL) {
/*
- * Current node is controller, that is mdt0
where we should take
- * BFL lock.
+ * Current node is controller, that is mdt0
, where we should
+ *
take
BFL lock.
*/
rc = ldlm_cli_enqueue_local(ns, res_id, LDLM_IBITS, &policy,
LCK_EX, &flags, ldlm_blocking_ast,
*/
rc = ldlm_cli_enqueue_local(ns, res_id, LDLM_IBITS, &policy,
LCK_EX, &flags, ldlm_blocking_ast,