[dm-devel] Re: [PATCH] fix rmmod oops

Joe Thornber thornber at sistina.com
Tue Nov 25 03:05:02 UTC 2003


Mike,

On Mon, Nov 24, 2003 at 04:23:05PM -0800, Mike Christie wrote:
> The attached patch (rmmod_daemon.patch) fixes this by replacing the
> semaphores with completions, and uses complete_and_exit() to make
> sure the daemon thread is completely broken down before exiting the 
> module (complete() passes 1 for the sync variable to __wake_up_common() 
> where up() passes zero).

Thanks, I didn't know about completions, they look useful.

- Joe




More information about the dm-devel mailing list