Skip to content

Introduction to lockd patches

Olaf Kirch linux-nfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest22 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/22lockd: make NLM_HOST_MAX tunablefs/lockd/host.c fs/lockd/svc.c include/linux/lockd/lockd.h+14 -41 reply
2/22Hide use of lockd's h_monitored flagfs/lockd/clntproc.c fs/lockd/host.c fs/lockd/mon.c +2 more+21 -131 reply
3/22Consolidate common code for statd->lockd notificationfs/lockd/host.c fs/lockd/svc4proc.c fs/lockd/svcproc.c +1 more+35 -360 replies
4/22When looking up a lockd host, pass hostname & lengthfs/lockd/clntproc.c fs/lockd/host.c fs/lockd/svc4proc.c +3 more+37 -211 reply
5/22lockd: introduce nsm_handlefs/lockd/clntlock.c fs/lockd/host.c fs/lockd/mon.c +1 more+134 -190 replies
6/22Misc minor fixes, indentation changesfs/lockd/host.c fs/lockd/svcsubs.c+11 -120 replies
7/22lockd: Make nlm_host_rebooted use the nsm_handlefs/lockd/clntlock.c fs/lockd/host.c fs/lockd/svc4proc.c +2 more+70 -560 replies
8/22lockd: make the nsm upcalls use the nsm_handlefs/lockd/mon.c include/linux/lockd/sm_inter.h+18 -130 replies
9/22lockd: make the hash chains use a hlist_nodefs/lockd/host.c include/linux/lockd/lockd.h+40 -330 replies
10/22lockd: Change list of blocked list to list_nodefs/lockd/svclock.c fs/lockd/svcsubs.c include/linux/lockd/lockd.h+58 -690 replies
11/22Change nlm_file to use a hlistfs/lockd/svcsubs.c include/linux/lockd/lockd.h+17 -280 replies
12/22lockd: make nlm_traverse_* more flexiblefs/lockd/svclock.c fs/lockd/svcshare.c fs/lockd/svcsubs.c +2 more+104 -670 replies
13/22lockd: Add nlm_destroy_hostfs/lockd/host.c+29 -160 replies
14/22Rewrite nlmsvc_invalidate_allfs/lockd/host.c fs/lockd/svcsubs.c include/linux/lockd/lockd.h+33 -261 reply
15/22lockd: optionally use hostnames for identifying peersfs/lockd/host.c fs/lockd/mon.c fs/lockd/svc.c +2 more+26 -30 replies
16/22make nlmclnt_next_cookie SMP safefs/lockd/clntproc.c include/linux/lockd/lockd.h+6 -50 replies
17/22match GRANTED_RES replies using cookiesfs/lockd/svc4proc.c fs/lockd/svclock.c fs/lockd/svcproc.c +1 more+16 -140 replies
18/22Export nsm_local_state to user space via sysctlfs/lockd/mon.c fs/lockd/svc.c include/linux/lockd/sm_inter.h+11 -20 replies
19/22lockd: fix use of h_nextrebindfs/lockd/clntlock.c+1 -10 replies
20/22Register all RPC programs with portmapper by defaultfs/nfsd/nfs2acl.c fs/nfsd/nfs3acl.c include/linux/sunrpc/svc.h +1 more+28 -140 replies
21/22Make statd support switchablefs/lockd/host.c fs/lockd/mon.c fs/lockd/svc.c +1 more+31 -40 replies
22/22Add kernel statdfs/buffer.c fs/lockd/Makefile fs/lockd/statd.c +3 more+469 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/22] Introduction to lockd patches

Subject: Introduction to lockd patches

This set of patches does various cleanups in the lockd code, adds the ability to use the client host name instead of the IP address (which is something the HA folks asked us for), and the ability to switch between the user space rpc.statd and a new kernel statd implementation.

The latter needs a separate user space utility named sm-notify that sends out the NSM_NOTIFY calls at boot. The utility is available from ftp://ftp.lst.de/pub/people/okir/sm-notify.

This code has been in several Suse releases. I forward ported this to 2.6.18-rc3 and made sure it compiles. I have *not* done any testing yet, as I ran out of time (I'm leaving for vacation tomorrow). I wanted to post this code for your review nevertheless, since I promised Steve Dickson I'd do that :)

If the kernel statd code is too controversial, I'm fine with keeping that in the suse tree a little longer. But I do believe it makes things a lot easier for users (one configuration mistake less); and it also makes the code simpler (no more funky upcalls to user land).

Note that both the use of hostnames instead of addresses, and the use of kernel statd, are switchable, and default to off.

Olaf

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs