Commit 1463b38
NFSD: simplify per-net file cache management
We currently have a 'laundrette' for closing cached files - a different
work-item for each network-namespace.
These 'laundrettes' (aka struct nfsd_fcache_disposal) are currently on a
list, and are freed using rcu.
The list is not necessary as we have a per-namespace structure (struct
nfsd_net) which can hold a link to the nfsd_fcache_disposal.
The use of kfree_rcu is also unnecessary as the cache is cleaned of all
files associated with a given namespace, and no new files can be added,
before the nfsd_fcache_disposal is freed.
So add a '->fcache_disposal' link to nfsd_net, and discard the list
management and rcu usage.
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>1 parent 1e37d0e commit 1463b38
2 files changed
Lines changed: 17 additions & 61 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | 47 | | |
49 | | - | |
50 | 48 | | |
51 | 49 | | |
52 | | - | |
53 | 50 | | |
54 | 51 | | |
55 | 52 | | |
| |||
62 | 59 | | |
63 | 60 | | |
64 | 61 | | |
65 | | - | |
66 | | - | |
67 | 62 | | |
68 | 63 | | |
69 | 64 | | |
| |||
367 | 362 | | |
368 | 363 | | |
369 | 364 | | |
370 | | - | |
| 365 | + | |
| 366 | + | |
371 | 367 | | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
383 | 372 | | |
384 | 373 | | |
385 | 374 | | |
| |||
755 | 744 | | |
756 | 745 | | |
757 | 746 | | |
758 | | - | |
| 747 | + | |
759 | 748 | | |
760 | 749 | | |
761 | 750 | | |
762 | 751 | | |
763 | 752 | | |
764 | 753 | | |
765 | 754 | | |
766 | | - | |
767 | 755 | | |
768 | 756 | | |
769 | 757 | | |
| |||
772 | 760 | | |
773 | 761 | | |
774 | 762 | | |
775 | | - | |
776 | 763 | | |
777 | 764 | | |
778 | | - | |
779 | | - | |
780 | | - | |
781 | | - | |
782 | | - | |
783 | | - | |
784 | | - | |
785 | | - | |
786 | | - | |
787 | | - | |
788 | | - | |
789 | | - | |
790 | | - | |
791 | | - | |
792 | | - | |
793 | | - | |
794 | | - | |
795 | | - | |
796 | | - | |
797 | | - | |
798 | | - | |
799 | | - | |
800 | | - | |
801 | | - | |
802 | | - | |
803 | | - | |
804 | | - | |
805 | | - | |
806 | | - | |
| 765 | + | |
807 | 766 | | |
808 | 767 | | |
809 | 768 | | |
810 | 769 | | |
811 | 770 | | |
812 | | - | |
| 771 | + | |
| 772 | + | |
813 | 773 | | |
814 | | - | |
815 | | - | |
816 | | - | |
817 | | - | |
818 | | - | |
819 | | - | |
820 | | - | |
821 | | - | |
822 | | - | |
823 | | - | |
| 774 | + | |
824 | 775 | | |
825 | 776 | | |
826 | 777 | | |
827 | 778 | | |
828 | 779 | | |
829 | | - | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
830 | 784 | | |
831 | 785 | | |
832 | 786 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| 188 | + | |
| 189 | + | |
188 | 190 | | |
189 | 191 | | |
190 | 192 | | |
| |||
0 commit comments