Re: GFS2 Filesystem [14/16]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux