Skip to content

sunrpc: stop refcounting svc_serv

NeilBrown linux-nfs 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 6 repliesIn review
  2. v15 patches 15 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5nfsd: call nfsd_last_thread() before final nfsd_put()fs/nfsd/nfsctl.c fs/nfsd/nfsd.h fs/nfsd/nfssvc.c+9 -30 replies
2/5svc: don't hold reference for poolstats, only mutex.fs/nfsd/netns.h fs/nfsd/nfsctl.c fs/nfsd/nfssvc.c +2 more+36 -340 replies
3/5nfsd: hold nfsd_mutex across entire netlink operationfs/nfsd/nfsctl.c+3 -60 replies
4/5SUNRPC: discard sv_refcnt, and svc_get/svc_putfs/lockd/svc.c fs/nfs/callback.c fs/nfsd/netns.h +5 more+23 -950 replies
5/5nfsd: rename nfsd_last_thread() to nfsd_destroy_serv()fs/nfsd/nfsctl.c fs/nfsd/nfsd.h fs/nfsd/nfssvc.c+7 -70 replies

Reviews trailers per patch

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

PatchJeff Layton
SeriesR-b
1/5
2/5
3/5
4/5
5/5

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 0/5 v2] sunrpc: stop refcounting svc_serv

I sent an earlier version of this series, got some feed back, revised it, but never sent it again. Sorry.

The main feedback was around the interaction between sunrpc and nfsd for handling poolstats. I have changed that so that nfsd tells sunrpc where the svc_serv pointer lives, and where to find a mutex to protect it. sunrpc then taks the mutex and accesses the pointer - if not NULL. I think this is nicer than the version that pass around funciton pointers.

This series is against nfsd-next

Thanks,
NeilBrown

[PATCH 1/5] nfsd: call nfsd_last_thread() before final nfsd_put() [PATCH 2/5] svc: don't hold reference for poolstats, only mutex. [PATCH 3/5] nfsd: hold nfsd_mutex across entire netlink operation [PATCH 4/5] SUNRPC: discard sv_refcnt, and svc_get/svc_put [PATCH 5/5] nfsd: rename nfsd_last_thread() to nfsd_destroy_serv()