Re: GFS2 Filesystem [14/16]

From: Nikita Danilov
Date: Sat Feb 25 2006 - 11:52:47 EST


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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/