Commit a592cdf
Kent Overstreet
bcachefs: don't use rht_bucket() in btree_key_cache_scan()
rht_bucket() does strange complicated things when a rehash is in
progress.
Instead, just skip scanning when a rehash is in progress: scanning is
going to be more expensive (many more empty slots to cover), and some
sort of infinite loop is being observed
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>1 parent 3e878fe commit a592cdf
1 file changed
+27
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
778 | 778 | | |
779 | 779 | | |
780 | 780 | | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
781 | 795 | | |
782 | 796 | | |
783 | 797 | | |
784 | 798 | | |
785 | 799 | | |
786 | 800 | | |
787 | 801 | | |
788 | | - | |
| 802 | + | |
789 | 803 | | |
790 | 804 | | |
791 | 805 | | |
| |||
866 | 880 | | |
867 | 881 | | |
868 | 882 | | |
869 | | - | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
870 | 892 | | |
871 | | - | |
| 893 | + | |
| 894 | + | |
872 | 895 | | |
873 | 896 | | |
874 | 897 | | |
| 898 | + | |
875 | 899 | | |
876 | 900 | | |
877 | 901 | | |
| |||
0 commit comments