projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
GFS2: Use lockref for glocks
[platform/adaptation/renesas_rcar/renesas_kernel.git]
/
fs
/
gfs2
/
glops.c
diff --git
a/fs/gfs2/glops.c
b/fs/gfs2/glops.c
index
e2e0a90
..
db908f6
100644
(file)
--- a/
fs/gfs2/glops.c
+++ b/
fs/gfs2/glops.c
@@
-525,9
+525,9
@@
static void iopen_go_callback(struct gfs2_glock *gl, bool remote)
if (gl->gl_demote_state == LM_ST_UNLOCKED &&
gl->gl_state == LM_ST_SHARED && ip) {
if (gl->gl_demote_state == LM_ST_UNLOCKED &&
gl->gl_state == LM_ST_SHARED && ip) {
- g
fs2_glock_hold(gl)
;
+ g
l->gl_lockref.count++
;
if (queue_work(gfs2_delete_workqueue, &gl->gl_delete) == 0)
if (queue_work(gfs2_delete_workqueue, &gl->gl_delete) == 0)
- g
fs2_glock_put_nolock(gl)
;
+ g
l->gl_lockref.count--
;
}
}
}
}