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:
29c7575
)
LU-3027 clio: Do not shrink sublock at cancel
81/7481/4
author
Oleg Drokin
<oleg.drokin@intel.com>
Thu, 29 Aug 2013 09:10:06 +0000
(17:10 +0800)
committer
Oleg Drokin
<oleg.drokin@intel.com>
Fri, 30 Aug 2013 04:15:25 +0000
(
04:15
+0000)
Shrinking sublock at ldlm lock cancel time means whoever happened
to attach to this lock just before will reenqueue the wrong lock.
Test-Parameters: envdefinitions=SLOW=yes,ONLY=write_disjoint \
clientdistro=el6 serverdistro=el6 clientarch=x86_64 \
serverarch=x86_64 testlist=parallel-scale
Change-Id: I8f2de683812621fb2f8d761cf2aceebc12868d75
Signed-off-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: Jian Yu <jian.yu@intel.com>
Reviewed-on: http://review.whamcloud.com/7481
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com>
Reviewed-by: Bobi Jam <bobijam@gmail.com>
lustre/lov/lovsub_lock.c
patch
|
blob
|
history
diff --git
a/lustre/lov/lovsub_lock.c
b/lustre/lov/lovsub_lock.c
index
3f0593c
..
8da2366
100644
(file)
--- a/
lustre/lov/lovsub_lock.c
+++ b/
lustre/lov/lovsub_lock.c
@@
-415,15
+415,12
@@
static void lovsub_lock_delete(const struct lu_env *env,
struct lov_lock *lov;
struct lov_lock_link *scan;
struct lov_lock_link *temp;
- struct lov_lock_sub *subdata;
restart = 0;
cfs_list_for_each_entry_safe(scan, temp,
&sub->lss_parents, lll_list) {
lov = scan->lll_super;
- subdata = &lov->lls_sub[scan->lll_idx];
lovsub_parent_lock(env, lov);
- subdata->sub_got = subdata->sub_descr;
lov_lock_unlink(env, scan, sub);
restart = lovsub_lock_delete_one(env, child, lov);
lovsub_parent_unlock(env, lov);