diff --git a/[refs] b/[refs] index 0d06a345a74a..596cbd14d977 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 75c1be487a690db43da2c1234fcacd84c982803c +refs/heads/master: 8778abb9a88fc4a74d8776ffaadf7214cf33c61e diff --git a/trunk/fs/notify/mark.c b/trunk/fs/notify/mark.c index 41f3990f900b..236f29b066ed 100644 --- a/trunk/fs/notify/mark.c +++ b/trunk/fs/notify/mark.c @@ -349,10 +349,8 @@ static int fsnotify_mark_destroy(void *ignored) for (;;) { spin_lock(&destroy_lock); - list_for_each_entry_safe(mark, next, &destroy_list, destroy_list) { - list_del(&mark->destroy_list); - list_add(&mark->destroy_list, &private_destroy_list); - } + /* exchange the list head */ + list_replace_init(&destroy_list, &private_destroy_list); spin_unlock(&destroy_lock); synchronize_srcu(&fsnotify_mark_srcu);