There's multiple gendisks with the same .devfs_name in scsi and we call
devfs_mk_dir on each of them. I think the right fix is to let
devfs_mk_dir succeed on an existing directory.
--- 1.91/fs/devfs/base.c Wed Jun 4 09:50:29 2003
+++ edited/fs/devfs/base.c Sat Jun 7 16:09:26 2003
@@ -1684,7 +1684,10 @@
}
error = _devfs_append_entry(dir, de, &old);
- if (error) {
+ if (error == -EEXIST) {
+ error = 0;
+ devfs_put(old);
+ } else if (error) {
PRINTK("(%s): could not append to dir: %p \"%s\"\n",
buf, dir, dir->name);
devfs_put(old);
-
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/