Commit b924bda
Andreas Gruenbacher
gfs2: Move the inode glock locking to gfs2_file_buffered_write
So far, for buffered writes, we were taking the inode glock in
gfs2_iomap_begin and dropping it in gfs2_iomap_end with the intention of
not holding the inode glock while iomap_write_actor faults in user
pages. It turns out that iomap_write_actor is called inside iomap_begin
... iomap_end, so the user pages were still faulted in while holding the
inode glock and the locking code in iomap_begin / iomap_end was
completely pointless.
Move the locking into gfs2_file_buffered_write instead. We'll take care
of the potential deadlocks due to faulting in user pages while holding a
glock in a subsequent patch.
Signed-off-by: Andreas Gruenbacher <[email protected]>1 parent dc73290 commit b924bda
2 files changed
+28
-59
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
961 | 961 | | |
962 | 962 | | |
963 | 963 | | |
964 | | - | |
965 | | - | |
966 | | - | |
967 | | - | |
968 | | - | |
969 | | - | |
970 | | - | |
971 | | - | |
972 | | - | |
973 | | - | |
974 | | - | |
975 | | - | |
976 | | - | |
977 | | - | |
978 | | - | |
979 | | - | |
980 | | - | |
981 | | - | |
982 | | - | |
983 | | - | |
984 | | - | |
985 | | - | |
986 | | - | |
987 | | - | |
988 | | - | |
989 | | - | |
990 | | - | |
991 | | - | |
992 | | - | |
993 | | - | |
994 | | - | |
995 | | - | |
996 | | - | |
997 | | - | |
998 | | - | |
999 | | - | |
1000 | | - | |
1001 | | - | |
1002 | | - | |
1003 | | - | |
1004 | 964 | | |
1005 | 965 | | |
1006 | 966 | | |
| |||
1118 | 1078 | | |
1119 | 1079 | | |
1120 | 1080 | | |
1121 | | - | |
1122 | | - | |
1123 | | - | |
1124 | | - | |
1125 | | - | |
1126 | 1081 | | |
1127 | 1082 | | |
1128 | 1083 | | |
| |||
1135 | 1090 | | |
1136 | 1091 | | |
1137 | 1092 | | |
1138 | | - | |
1139 | | - | |
1140 | | - | |
1141 | | - | |
1142 | | - | |
1143 | | - | |
1144 | 1093 | | |
1145 | 1094 | | |
1146 | 1095 | | |
| |||
1168 | 1117 | | |
1169 | 1118 | | |
1170 | 1119 | | |
1171 | | - | |
1172 | | - | |
1173 | 1120 | | |
1174 | | - | |
1175 | 1121 | | |
1176 | 1122 | | |
1177 | 1123 | | |
| |||
1219 | 1165 | | |
1220 | 1166 | | |
1221 | 1167 | | |
1222 | | - | |
| 1168 | + | |
1223 | 1169 | | |
1224 | 1170 | | |
1225 | 1171 | | |
1226 | 1172 | | |
1227 | | - | |
1228 | | - | |
1229 | | - | |
1230 | | - | |
1231 | 1173 | | |
1232 | 1174 | | |
1233 | 1175 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
880 | 880 | | |
881 | 881 | | |
882 | 882 | | |
| 883 | + | |
| 884 | + | |
883 | 885 | | |
884 | 886 | | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
885 | 901 | | |
886 | 902 | | |
887 | 903 | | |
888 | 904 | | |
889 | 905 | | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
890 | 917 | | |
891 | 918 | | |
892 | 919 | | |
| |||
0 commit comments