File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -422,7 +422,7 @@ void mm_update_next_owner(struct mm_struct *mm)
422
422
* freed task structure.
423
423
*/
424
424
if (atomic_read (& mm -> mm_users ) <= 1 ) {
425
- mm -> owner = NULL ;
425
+ WRITE_ONCE ( mm -> owner , NULL ) ;
426
426
return ;
427
427
}
428
428
@@ -462,7 +462,7 @@ void mm_update_next_owner(struct mm_struct *mm)
462
462
* most likely racing with swapoff (try_to_unuse()) or /proc or
463
463
* ptrace or page migration (get_task_mm()). Mark owner as NULL.
464
464
*/
465
- mm -> owner = NULL ;
465
+ WRITE_ONCE ( mm -> owner , NULL ) ;
466
466
return ;
467
467
468
468
assign_new_owner :
@@ -483,7 +483,7 @@ void mm_update_next_owner(struct mm_struct *mm)
483
483
put_task_struct (c );
484
484
goto retry ;
485
485
}
486
- mm -> owner = c ;
486
+ WRITE_ONCE ( mm -> owner , c ) ;
487
487
task_unlock (c );
488
488
put_task_struct (c );
489
489
}
You can’t perform that action at this time.
0 commit comments