diff options
Diffstat (limited to 'fs/notify')
-rw-r--r-- | fs/notify/mark.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/notify/mark.c b/fs/notify/mark.c index 22acb0a79b53..b251105f646f 100644 --- a/fs/notify/mark.c +++ b/fs/notify/mark.c | |||
@@ -619,6 +619,11 @@ restart: | |||
619 | /* mark should be the last entry. last is the current last entry */ | 619 | /* mark should be the last entry. last is the current last entry */ |
620 | hlist_add_behind_rcu(&mark->obj_list, &last->obj_list); | 620 | hlist_add_behind_rcu(&mark->obj_list, &last->obj_list); |
621 | added: | 621 | added: |
622 | /* | ||
623 | * Since connector is attached to object using cmpxchg() we are | ||
624 | * guaranteed that connector initialization is fully visible by anyone | ||
625 | * seeing mark->connector set. | ||
626 | */ | ||
622 | WRITE_ONCE(mark->connector, conn); | 627 | WRITE_ONCE(mark->connector, conn); |
623 | out_err: | 628 | out_err: |
624 | spin_unlock(&conn->lock); | 629 | spin_unlock(&conn->lock); |