]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Re-organize the NFS file handle affinity code for the NFS server.
authorrmacklem <rmacklem@FreeBSD.org>
Tue, 14 Apr 2020 00:01:26 +0000 (00:01 +0000)
committerrmacklem <rmacklem@FreeBSD.org>
Tue, 14 Apr 2020 00:01:26 +0000 (00:01 +0000)
commit7ce2fd6603709c85c19684ab87b1e0a98589b3aa
treee0eeebf05fa27d863d922fcd3333c7c6772e26b6
parentde1d637a8dca3c7286b7cccaef3e51b263e00da3
Re-organize the NFS file handle affinity code for the NFS server.

The file handle affinity code was configured to be used by both the
old and new NFS servers. This no longer makes sense, since there is
only one NFS server.
This patch copies a majority of the code in sys/nfs/nfs_fha.c and
sys/nfs/nfs_fha.h into sys/fs/nfsserver/nfs_fha_new.c and
sys/fs/nfsserver/nfs_fha_new.h, so that the files in sys/nfs can be
deleted. The code is simplified by deleting the function callback pointers
used to call functions in either the old or new NFS server and they were
replaced by calls to the functions.

As well as a cleanup, this re-organization simplifies the changes
required for handling of external page mbufs, which is required for KERN_TLS.

This patch should not result in a semantic change to file handle affinity.
sys/conf/files
sys/fs/nfsserver/nfs_fha_new.c
sys/fs/nfsserver/nfs_fha_new.h
sys/fs/nfsserver/nfs_nfsdkrpc.c
sys/modules/nfsd/Makefile
sys/nfs/nfs_fha.c [deleted file]
sys/nfs/nfs_fha.h [deleted file]