]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix the default number of threads for Flex File layout pNFS client I/O.
authorRick Macklem <rmacklem@FreeBSD.org>
Sat, 2 Jun 2018 00:11:26 +0000 (00:11 +0000)
committerRick Macklem <rmacklem@FreeBSD.org>
Sat, 2 Jun 2018 00:11:26 +0000 (00:11 +0000)
commitdec8894b452dd67c33902cf30ff431fe9c830bb8
tree033257dc9a23ed6681c9491ce8e8a3841e44cd5f
parent220e4623aa8b6231362247adf43fea406c17baf3
Fix the default number of threads for Flex File layout pNFS client I/O.

The intent was that the default would be based on number of CPUs, but the
code disabled using taskqueue() by default.
This code is only executed when mounting a NFSv4.1 server that supports the
Flexible File layout for pNFS and, since such servers are rare, this change
shouldn't result in a POLA violation.
(The FreeBSD pNFS server is still a project and the only other one that
 uses Flexible File layout is being developed by Primary Data and I don't
 know if they have even shipped any to customers yet.)
Found while testing the pNFS server.
sys/fs/nfs/nfs_commonport.c
sys/fs/nfsclient/nfs_clrpcops.c