Messages in this thread | | | From | Nikita Danilov <> | Date | Sat, 25 Feb 2006 19:54:59 +0300 | Subject | Re: GFS2 Filesystem [14/16] |
| |
Steven Whitehouse writes: > [PATCH 14/16] GFS2: >
[...]
> + > +int gdlm_kobject_setup(struct gdlm_ls *ls, struct kobject *fskobj) > +{ > + int error; > + > + error = kobject_set_name(&ls->kobj, "%s", "lock_module"); > + if (error) { > + log_error("can't set kobj name %d", error); > + return error; > + } > + > + ls->kobj.kset = &gdlm_kset; > + ls->kobj.ktype = &gdlm_ktype; > + ls->kobj.parent = fskobj; > + > + error = kobject_register(&ls->kobj);
What prevents races between file system umount (and file system module unloading) and invocations of ->show/->store? This used to be a show-stopper for exporting file system attributes in sysfs.
Nikita. - 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/
| |