Commit 29a951d
committed
mm: fix clear_refs_write locking
Turning page table entries read-only requires the mmap_sem held for
writing.
So stop doing the odd games with turning things from read locks to write
locks and back. Just get the write lock.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>1 parent 1d94330 commit 29a951d
1 file changed
Lines changed: 9 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1215 | 1215 | | |
1216 | 1216 | | |
1217 | 1217 | | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
1218 | 1222 | | |
1219 | | - | |
1220 | | - | |
1221 | | - | |
1222 | | - | |
1223 | | - | |
1224 | 1223 | | |
1225 | 1224 | | |
1226 | 1225 | | |
1227 | 1226 | | |
1228 | 1227 | | |
1229 | | - | |
1230 | | - | |
| 1228 | + | |
1231 | 1229 | | |
1232 | 1230 | | |
1233 | | - | |
1234 | | - | |
1235 | | - | |
1236 | | - | |
1237 | 1231 | | |
1238 | 1232 | | |
1239 | 1233 | | |
1240 | 1234 | | |
1241 | 1235 | | |
1242 | | - | |
1243 | | - | |
1244 | | - | |
1245 | | - | |
1246 | | - | |
1247 | | - | |
1248 | | - | |
1249 | | - | |
1250 | | - | |
1251 | | - | |
1252 | | - | |
| 1236 | + | |
| 1237 | + | |
1253 | 1238 | | |
1254 | 1239 | | |
1255 | 1240 | | |
| |||
1261 | 1246 | | |
1262 | 1247 | | |
1263 | 1248 | | |
1264 | | - | |
| 1249 | + | |
| 1250 | + | |
1265 | 1251 | | |
1266 | 1252 | | |
1267 | 1253 | | |
| |||
0 commit comments