Messages in this thread |  | | Date | Sat, 27 Oct 2001 17:01:24 -0400 (EDT) | From | Alexander Viro <> | Subject | Re: more devfs fun (Piled Higher and Deeper) |
| |
On Sat, 27 Oct 2001, Alexander Viro wrote:
> devfs_rmdir() checks that directory is empty. Then it calls > devfsd_notify_one(), which can block. Then it marks the entry > unregistered and reports success. > > Guess what will happen if devfs_register() will happen at that > moment...
Ugh... My apologies - race here is a bit different. Namely, devfs_register() find a directory, starts creating a child, blocks in kmalloc(), _then_ entire devfs_rmdir() happens and devfs_register() merrily inserts a new child into dead directory.
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|  |