On 03/04, Michal Hocko wrote: > > On Wed 04-03-20 13:13:25, Oleg Nesterov wrote: > > On 03/04, Michal Hocko wrote: > > > > > > So what would be a legit usecase to drop all signals while explicitly > > > calling allow_signal? > > > > Not sure I understand... > > flush_signals will simply drop all pending signals on the floor so there > is no way to handle them, right? I am asking when is still really a > desirable thing to do when you allow_signal for the kthread. The only > one I can imagine is that the kthread allows a single signal so it is > quite clear which signal is flushed. Yes. This is what I meant when I said "they should do the same if kthread allows a single signal". > kernel_dequeue_signal on the other hand will give you a signal and so > the code can actually handle it in some way. Yes. Oleg.