Skip to contentSkip to conversation

gfs2: Remove a missed rcu_read_unlock() in gfs2_glock_get()

PATCH New Andrew Price 3 participants 3 messages Aug 4, 2017 GFS2 file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gfs2: Remove a missed rcu_read_unlock() in gfs2_glock_get()

Commit 64b8e0b83eaa "gfs2: gfs2_glock_get: Wait on freeing glocks" missed removing the final rcu_read_unlock() call.

---
 fs/gfs2/glock.c | 1 -
 1 file changed, 1 deletion(-)
fs/gfs2/glock.c +0 -1
index fcbe478480f7..5ad757f0ce60 100644
@@ -881,7 +881,6 @@ int gfs2_glock_get(struct gfs2_sbd *sdp, u64 number,
 	atomic_dec(&sdp->sd_glock_disposal);
 
 out:
-	rcu_read_unlock();
 	return ret;
 }
 
Signature · 1 line
2.13.3
#1 lore raw

PATCH 1/1 gfs2: Remove a missed rcu_read_unlock() in gfs2_glock_get()

Quoted 13 lines · Andrew Price

Commit 64b8e0b83eaa "gfs2: gfs2_glock_get: Wait on freeing glocks" missed removing the final rcu_read_unlock() call.

---
 fs/gfs2/glock.c | 1 -
 1 file changed, 1 deletion(-)
fs/gfs2/glock.c +0 -0
index fcbe478480f7..5ad757f0ce60 100644

fs/gfs2/glock.c int gfs2_glock_get(struct gfs2_sbd *sdp, u64 number, · line 885

Quoted 6 lines
fs/gfs2/glock.c +0 -1
@@ -881,7 +881,6 @@ int gfs2_glock_get(struct gfs2_sbd *sdp, u64 number,
        atomic_dec(&sdp->sd_glock_disposal);
 
 out:
-       rcu_read_unlock();
        return ret;
 }

It seems this fails on preemptible kernels only, so we didn't see it in our previous testing.

Thanks,
Andreas

#2 lore raw

PATCH 1/1 gfs2: Remove a missed rcu_read_unlock() in gfs2_glock_get()

In reply to Andrew Price

----- Original Message -----

| Commit 64b8e0b83eaa "gfs2: gfs2_glock_get: Wait on freeing glocks"
| missed removing the final rcu_read_unlock() call.
| 
| Signed-off-by: Andrew Price <[email protected]>
| ---

Hi,

Thanks. This is now pushed to the for-next branch of the linux-gfs2 tree:
https://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2.git/commit/fs/gfs2?h=for-next&id=7bfd81576ec4d6b7d463cae3dd4a43ac1323cc30

Regards,

Bob Peterson
Red Hat File Systems