Commit b4d8f22
nfsd: make nfsd_svc take an array of thread counts
Now that the refcounting is fixed, rework nfsd_svc to use the same
thread setup as the pool_threads interface. Have it take an array of
thread counts instead of just a single value, and pass that from the
netlink threads set interface. Since the new netlink interface doesn't
have the same restriction as pool_threads, move the guard against
shutting down all threads to write_pool_threads.
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>1 parent 8e0c8d2 commit b4d8f22
3 files changed
Lines changed: 45 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
406 | 406 | | |
407 | 407 | | |
408 | 408 | | |
409 | | - | |
| 409 | + | |
410 | 410 | | |
411 | 411 | | |
412 | 412 | | |
| |||
481 | 481 | | |
482 | 482 | | |
483 | 483 | | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
484 | 492 | | |
485 | 493 | | |
486 | 494 | | |
| |||
1696 | 1704 | | |
1697 | 1705 | | |
1698 | 1706 | | |
1699 | | - | |
| 1707 | + | |
1700 | 1708 | | |
1701 | 1709 | | |
1702 | 1710 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
| 107 | + | |
107 | 108 | | |
108 | 109 | | |
109 | 110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
709 | 709 | | |
710 | 710 | | |
711 | 711 | | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
712 | 725 | | |
713 | 726 | | |
714 | 727 | | |
715 | 728 | | |
716 | 729 | | |
717 | 730 | | |
718 | 731 | | |
719 | | - | |
| 732 | + | |
720 | 733 | | |
721 | 734 | | |
722 | 735 | | |
723 | 736 | | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
724 | 744 | | |
725 | 745 | | |
726 | 746 | | |
| |||
743 | 763 | | |
744 | 764 | | |
745 | 765 | | |
746 | | - | |
747 | | - | |
748 | | - | |
749 | | - | |
750 | | - | |
751 | | - | |
752 | | - | |
753 | 766 | | |
754 | 767 | | |
755 | 768 | | |
| |||
761 | 774 | | |
762 | 775 | | |
763 | 776 | | |
764 | | - | |
765 | | - | |
766 | | - | |
767 | | - | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
768 | 787 | | |
769 | 788 | | |
770 | | - | |
| 789 | + | |
771 | 790 | | |
772 | 791 | | |
773 | 792 | | |
| |||
777 | 796 | | |
778 | 797 | | |
779 | 798 | | |
780 | | - | |
781 | | - | |
782 | | - | |
783 | | - | |
784 | | - | |
785 | | - | |
786 | | - | |
787 | 799 | | |
788 | 800 | | |
789 | 801 | | |
| |||
795 | 807 | | |
796 | 808 | | |
797 | 809 | | |
798 | | - | |
| 810 | + | |
799 | 811 | | |
800 | 812 | | |
801 | 813 | | |
| |||
0 commit comments