linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Sysfs attributes racing with unregistration
@ 2012-01-04 16:52 Alan Stern
  2012-01-04 17:18 ` Tejun Heo
  0 siblings, 1 reply; 25+ messages in thread
From: Alan Stern @ 2012-01-04 16:52 UTC (permalink / raw)
  To: Tejun Heo; +Cc: Kernel development list

Tejun:

Can you explain the current situation regarding access to sysfs
attributes and possible races with kobject removal?  I have two
questions in particular:

	What happens if one thread calls an attribute's show or
	store method concurrently with another thread unregistering
	the underlying kobject?

	What happens if a thread continues to hold an open fd 
	reference to a sysfs attribute file after the kobject is
	unregistered, and then tries to read or write that fd?

If there are any guarantees about what happens in these situations, I 
can't find them in the kernel source.

And of course, if you can think of any other matters related to this 
topic, please mention them.

Alan Stern


^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2013-01-14 15:12 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-04 16:52 Sysfs attributes racing with unregistration Alan Stern
2012-01-04 17:18 ` Tejun Heo
2012-01-04 18:13   ` Eric W. Biederman
2012-01-04 19:41     ` Alan Stern
2012-01-05  3:07       ` Eric W. Biederman
2012-01-05 15:13         ` Revoking filesystems [was Re: Sysfs attributes racing with unregistration] Alan Stern
2012-01-05 15:32           ` Tejun Heo
2012-01-05 16:03             ` Eric W. Biederman
2012-01-05 16:44               ` Tejun Heo
2012-01-05 16:47               ` Alan Stern
2012-01-05 17:11                 ` Tejun Heo
2012-01-05 18:27                 ` Ted Ts'o
2012-01-05 18:36                   ` Tejun Heo
2012-01-05 19:28                     ` Ted Ts'o
2012-01-05 20:52                       ` Tejun Heo
2012-01-06  6:25                       ` Alexander E. Patrakov
2012-01-07 21:01                       ` Revoking filesystems [was Re: Sysfs attributes racing withunregistration] Milton Miller
2012-01-05 20:43                     ` Revoking filesystems [was Re: Sysfs attributes racing with unregistration] Eric W. Biederman
2012-01-05 20:55                       ` Tejun Heo
2012-01-05 18:38                   ` Christoph Hellwig
2012-01-05 15:52           ` Eric W. Biederman
2013-01-14 15:11             ` watchdog code anish kumar
2012-01-05 18:18           ` Revoking filesystems [was Re: Sysfs attributes racing with unregistration] Greg KH
2012-01-04 18:13   ` Sysfs attributes racing with unregistration Alan Stern
2012-01-04 18:20     ` Tejun Heo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).