>>>>> On Fri, 6 May 2016 16:20:44 +0300, Konstantin Belousov said: > > The cleanup is performed by the same thread which did the lock, in the > kernel mode. Thread can only die by explicit kernel action, and this > action is executed by the dying thread. Thanks, that's the part I didn't know about. __Martin