Forgive me for my ignorance, but how can a kernel task be preempted?
No, under linux a kernel thread of execution can only give up the cpu
explicitly.
(btw, kernel preemption IMHO is a sorry and dirty solution for the
problem that it claims to solve)
I would suggest putting your encryption daemon task in userland and
have it block on some sort of file (/dev/whatever) and it will process
the encryption as it wakes up due to data being available from that
"file".
Later,
David S. Miller
davem@caip.rutgers.edu