Devfs races with block devices

From: Richard Gooch (
Date: Sun Dec 09 2001 - 00:38:04 EST

[Finally, after other things have stabilised, I'm ready to tackle this

Alexander Viro writes:
> BTW, here's one more devfs rmmod race: check_disk_changed() in
> fs/devfs/base.c. Calling ->check_media_change() with no protection
> whatsoever. If rmmod happens at that point...

How about if I do this sequence:
        devfs checks;
        if (bd_op->owner)
        if (bd_op->owner)

Is there any reason why that won't work?


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Sat Dec 15 2001 - 21:00:14 EST