Re: owner field in `struct fs'

From: Philipp Rumpf (prumpf@puffin.external.hp.com)
Date: Sat Jun 24 2000 - 18:07:13 EST


> Yeah, forget that. It won't work. But what should work is if rmmod does:
> - if refcount != 0, fail

This isn't really necessary - the common case is the refcount is 0 for
explicit calls, so you don't need to check twice.

> - launch N-1 RT threads which just hog their CPUs

Are RT processes really safe ? kernel threads are, AFAICT

> - wait for RT threads to start (use a pipe, say)

Or, if you want to be on the safe side and use kernel threads, an
atomic_t.

> - if refcount != 0, kill RT threads and fail
> - remove module
> - kill RT threads and exit with success.

So, except for the RT thread vs kernel thread issue and the duplicated
refcount check it's exactly what the patch Rusty, Andrew Morton, and I
came up with does.

        Philipp Rumpf

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Jun 26 2000 - 21:00:05 EST