Re: [discuss] Re: [PATCH] fs/compat.c: rwsem instead of BKL around ioctl32_hash_table

From: Andi Kleen
Date: Fri Sep 03 2004 - 10:12:19 EST


> Andi> If you wanted to fix it properly better make it use RCU -
> Andi> but it cannot work for the case of calling a compat handler.
>
> Based on what you just wrote, it seems to me like RCU would actually
> work fine. Is this wrong?

I meant it wouldn't work if you wanted to fix the module count assumption
I described above. Fixing it would be probably a good idea because it's a
bit of a nasty trap and kind of undocumented. But a global lock for
it is not the right way to do it, if anything you would use the
module counts.

-Andi
-
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/