Re: [PATCH][WIP v1] aio: experimental use of threads, demonstration of cancel method

From: Benjamin LaHaise
Date: Thu Feb 14 2013 - 16:03:16 EST


On Thu, Feb 14, 2013 at 03:53:28PM -0500, Benjamin LaHaise wrote:
> If the kiocb has been cancelled, this code ensures that the helper thread
> has received the SIGSEGV. This ensures that the signal can then be flushed
> by flush_signals(). If the kiocb has not been cancelled, it can no longer
> be cancelled after the cmpxchg() has executed.

Whoops, SIGSEGV will certainly need special handling. The cancel code
should really be using SIGKILL. I will add that to the list of things
to fix.

-ben
--
"Thought is the essence of where you are now."
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/