HomeFreeBSD

Modify nfsrv_pnfsremovesetup() and nfsrv_pnfsremove(), factoring out the part

Description

Modify nfsrv_pnfsremovesetup() and nfsrv_pnfsremove(), factoring out the part
that does the Lookup and Remove RPCs
against the DS server to remove the DS data file, so that it can be done
by a separate kernel process.
Put all the arguments to this factored out function (nfsrv_dsremove()) in
a structure, so that it can be passed through kproc_create().
This allows removal of the data file on mirrors to be done concurrently.
In future, it might be better to avoid the kproc_create() call for every
file remove and have a set of these kernel processes waiting to do the RPCs.

Details