Commit 4bdbba5
nfsd: don't free files unconditionally in __nfsd_file_cache_purge
nfsd_file_cache_purge is called when the server is shutting down, in
which case, tearing things down is generally fine, but it also gets
called when the exports cache is flushed.
Instead of walking the cache and freeing everything unconditionally,
handle it the same as when we have a notification of conflicting access.
Fixes: ac3a258 ("nfsd: rework refcounting in filecache")
Reported-by: Ruben Vestergaard <[email protected]>
Reported-by: Torkil Svensgaard <[email protected]>
Reported-by: Shachar Kagan <[email protected]>
Signed-off-by: Jeff Layton <[email protected]>
Tested-by: Shachar Kagan <[email protected]>
Signed-off-by: Chuck Lever <[email protected]>1 parent 7c24fa2 commit 4bdbba5
1 file changed
+36
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
661 | 661 | | |
662 | 662 | | |
663 | 663 | | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
664 | 697 | | |
665 | 698 | | |
666 | 699 | | |
| |||
688 | 721 | | |
689 | 722 | | |
690 | 723 | | |
691 | | - | |
692 | | - | |
693 | 724 | | |
694 | 725 | | |
695 | 726 | | |
696 | 727 | | |
697 | | - | |
698 | | - | |
699 | | - | |
700 | | - | |
701 | | - | |
702 | | - | |
703 | | - | |
704 | | - | |
705 | | - | |
706 | | - | |
707 | | - | |
708 | | - | |
709 | | - | |
710 | | - | |
711 | | - | |
712 | | - | |
713 | | - | |
714 | | - | |
| 728 | + | |
715 | 729 | | |
716 | 730 | | |
717 | 731 | | |
| |||
928 | 942 | | |
929 | 943 | | |
930 | 944 | | |
931 | | - | |
932 | | - | |
933 | | - | |
934 | | - | |
935 | | - | |
| 945 | + | |
| 946 | + | |
936 | 947 | | |
937 | 948 | | |
938 | 949 | | |
| |||
0 commit comments