Commit a9ab28b
xfs: remove xfs_buf_cache.bc_lock
xfs_buf_cache.bc_lock serializes adding buffers to and removing them from
the hashtable. But as the rhashtable code already uses fine grained
internal locking for inserts and removals the extra protection isn't
actually required.
It also happens to fix a lock order inversion vs b_lock added by the
recent lookup race fix.
Fixes: ee10f6f ("xfs: fix buffer lookup vs release race")
Reported-by: Lai, Yi <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Carlos Maiolino <[email protected]>
Reviewed-by: Dave Chinner <[email protected]>
Signed-off-by: Carlos Maiolino <[email protected]>1 parent 26b63be commit a9ab28b
2 files changed
+17
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
| 44 | + | |
46 | 45 | | |
47 | 46 | | |
48 | 47 | | |
| |||
220 | 219 | | |
221 | 220 | | |
222 | 221 | | |
223 | | - | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
224 | 228 | | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
225 | 232 | | |
226 | 233 | | |
227 | 234 | | |
228 | 235 | | |
229 | 236 | | |
230 | | - | |
231 | 237 | | |
232 | 238 | | |
233 | 239 | | |
| |||
497 | 503 | | |
498 | 504 | | |
499 | 505 | | |
500 | | - | |
501 | 506 | | |
502 | 507 | | |
503 | 508 | | |
| |||
647 | 652 | | |
648 | 653 | | |
649 | 654 | | |
650 | | - | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
651 | 659 | | |
652 | 660 | | |
653 | 661 | | |
| 662 | + | |
654 | 663 | | |
655 | | - | |
656 | 664 | | |
657 | 665 | | |
658 | 666 | | |
659 | 667 | | |
660 | | - | |
| 668 | + | |
661 | 669 | | |
662 | 670 | | |
663 | 671 | | |
664 | 672 | | |
665 | 673 | | |
666 | 674 | | |
667 | 675 | | |
| 676 | + | |
668 | 677 | | |
669 | | - | |
670 | | - | |
671 | | - | |
672 | 678 | | |
673 | 679 | | |
674 | 680 | | |
| |||
1085 | 1091 | | |
1086 | 1092 | | |
1087 | 1093 | | |
1088 | | - | |
1089 | 1094 | | |
1090 | 1095 | | |
1091 | 1096 | | |
| |||
1097 | 1102 | | |
1098 | 1103 | | |
1099 | 1104 | | |
1100 | | - | |
1101 | 1105 | | |
1102 | 1106 | | |
1103 | 1107 | | |
| |||
1115 | 1119 | | |
1116 | 1120 | | |
1117 | 1121 | | |
1118 | | - | |
1119 | 1122 | | |
1120 | 1123 | | |
1121 | 1124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
84 | 83 | | |
85 | 84 | | |
86 | 85 | | |
| |||
0 commit comments