[linux-cifs-client] [PATCH 0/3] [CIFS] RFC: clean up cifsd thread shutdown

Jeff Layton jlayton at redhat.com
Thu Apr 17 20:59:03 GMT 2008


Shirish ran across a problem when testing a RHEL4.7 beta kernel where
kthread_stop was called on a cifsd that had already exited. Looking at
the code, it looks like this is actually a problem in mainline. There is
no guarantee that cifsd will actually be up when we call kthread_stop on
it.

This patchset is intended to try and close this race, and also to remove
signaling altogether from the cifsd code. I've tested this lightly and
would appreciate comments on all of them. The code that makes cifsd use
non-blocking socket calls is some I'm really not sure about. It seems to
work, but please let me know if the approach is just plain bogus.

Signed-off-by: Jeff Layton <jlayton at redhat.com>


More information about the linux-cifs-client mailing list