Commit 1cd28e1
Andreas Gruenbacher
gfs2: finish_xmote cleanup
Currently, function finish_xmote() takes and releases the glock
spinlock. However, all of its callers immediately take that spinlock
again, so it makes more sense to take the spin lock before calling
finish_xmote() already.
With that, thaw_glock() is the only place that sets the GLF_HAVE_REPLY
flag outside of the glock spinlock, but it also takes that spinlock
immediately thereafter. Change that to set the bit when the spinlock is
already held. This allows to switch from test_and_clear_bit() to
test_bit() and clear_bit() in glock_work_func().
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>1 parent a3730c5 commit 1cd28e1
1 file changed
Lines changed: 13 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
625 | 625 | | |
626 | 626 | | |
627 | 627 | | |
628 | | - | |
629 | 628 | | |
630 | 629 | | |
631 | 630 | | |
| |||
673 | 672 | | |
674 | 673 | | |
675 | 674 | | |
676 | | - | |
677 | 675 | | |
678 | 676 | | |
679 | 677 | | |
| |||
696 | 694 | | |
697 | 695 | | |
698 | 696 | | |
699 | | - | |
700 | 697 | | |
701 | 698 | | |
702 | 699 | | |
| |||
843 | 840 | | |
844 | 841 | | |
845 | 842 | | |
| 843 | + | |
846 | 844 | | |
847 | | - | |
| 845 | + | |
| 846 | + | |
848 | 847 | | |
849 | 848 | | |
850 | 849 | | |
851 | 850 | | |
852 | 851 | | |
| 852 | + | |
853 | 853 | | |
854 | | - | |
| 854 | + | |
| 855 | + | |
855 | 856 | | |
856 | 857 | | |
857 | 858 | | |
| |||
1108 | 1109 | | |
1109 | 1110 | | |
1110 | 1111 | | |
1111 | | - | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
1112 | 1115 | | |
1113 | 1116 | | |
1114 | 1117 | | |
1115 | | - | |
1116 | 1118 | | |
1117 | 1119 | | |
1118 | 1120 | | |
| |||
2183 | 2185 | | |
2184 | 2186 | | |
2185 | 2187 | | |
| 2188 | + | |
| 2189 | + | |
2186 | 2190 | | |
2187 | | - | |
| 2191 | + | |
| 2192 | + | |
2188 | 2193 | | |
2189 | 2194 | | |
2190 | 2195 | | |
| |||
0 commit comments