GFS2: Re-add the rcu_read_lock in glock_hash_walk
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH 1/1 GFS2: Re-add the rcu_read_lock in glock_hash_walk
Hi,
This patch adds back the call to rcu_read_lock() and corresponding rcu_read_unlock() in function glock_hash_walk() as suggested by Andreas.
Signed-off-by Bob Peterson <[email protected]>
---
fs/gfs2/glock.c +2 -0
@@ -1423,6 +1423,7 @@ static void glock_hash_walk(glock_examiner examiner, const struct gfs2_sbd *sdp)const struct bucket_table *tbl;int i; +rcu_read_lock (); tbl =rht_dereference_rcu (gl_hash_table.tbl, &gl_hash_table);for (i =0 ; i < tbl->size; i++) {rht_for_each_entry_safe (gl, pos, next, tbl, i, gl_node) {
@@ -1431,6 +1432,7 @@ static void glock_hash_walk(glock_examiner examiner, const struct gfs2_sbd *sdp)examiner (gl); } } +rcu_read_unlock ();cond_resched (); }