Skip to content

gfs2: Stop using rhashtable_walk_peek

Andreas Gruenbacher cluster-devel lkml netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 14 repliesIn review
  2. v11 patch 2 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2lockref: Add lockref_put_not_zeroinclude/linux/lockref.h lib/lockref.c+29 -00 replies
2/2gfs2: Stop using rhashtable_walk_peekfs/gfs2/glock.c+28 -190 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchBob Peterson
SeriesA-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] gfs2: Stop using rhashtable_walk_peek

Here's a second version of the patch (now a patch set) to eliminate rhashtable_walk_peek in gfs2.

The first patch introduces lockref_put_not_zero, the inverse of lockref_get_not_zero.

The second patch eliminates rhashtable_walk_peek in gfs2. In gfs2_glock_iter_next, the new lockref function from patch one is used to drop a lockref count as long as the count doesn't drop to zero. This is almost always the case; if there is a risk of dropping the last reference, we must defer that to a work queue because dropping the last reference may sleep.

Thanks,
Andreas

Andreas Gruenbacher (2):
lockref: Add lockref_put_not_zero
gfs2: Stop using rhashtable_walk_peek

 fs/gfs2/glock.c         | 47 ++++++++++++++++++++++++++++-------------------
 include/linux/lockref.h |  1 +
 lib/lockref.c           | 28 ++++++++++++++++++++++++++++
 3 files changed, 57 insertions(+), 19 deletions(-)
Signature · 1 line
2.14.3