lkml.org 
[lkml]   [2006]   [Feb]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: 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/

\
 
 \ /
  Last update: 2006-02-25 17:57    [W:0.708 / U:1.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site