[Devel] [PATCH] nfs: protect callback execution against per-net callback thread shutdown
Stanislav Kinsburskiy
skinsbursky at virtuozzo.com
Tue Nov 7 13:06:53 MSK 2017
07.11.2017 11:03, Kirill Tkhai пишет:
>>> Couldn't this change introduce a deadlock like below?
>>> [thread]
>>> nfs_callback_down() nfs41_callback_svc()
>>> mutex_lock(&nfs_callback_mutex);
>>> kthread_stop(cb_info->task);
>>> wake_up_process();
>>> wait_for_completion(&kthread->exited);
>
> And what about above one?
>
Good catch. Need to think more about it then.
More information about the Devel
mailing list