aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/mm/sc-ip22.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2011-03-18 08:29:36 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2011-03-18 08:54:59 -0400
commit27cb1572e3e6bb1f8cf6bb3d74c914a87b131792 (patch)
tree01e6510de480d3595ccff315d777770490e51f9c /arch/mips/mm/sc-ip22.c
parent9d412a43c3b26e1e549319e5eec26f0829f9f74d (diff)
fix deadlock in pivot_root()
Don't hold vfsmount_lock over the loop traversing ->mnt_parent; do check_mnt(new.mnt) under namespace_sem instead; combined with namespace_sem held over all that code it'll guarantee the stability of ->mnt_parent chain all the way to the root. Doing check_mnt() outside of namespace_sem in case of pivot_root() is wrong anyway. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/mips/mm/sc-ip22.c')
0 files changed, 0 insertions, 0 deletions
href='#n266'>266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367














































































































































































































































































































































































                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  
‰PNG