All of lore.kernel.org
 help / color / mirror / Atom feed
* 2.5.recent: device_remove_file() doesn't
@ 2003-03-27  3:53 David Brownell
  2003-03-27 17:58 ` Patrick Mochel
  0 siblings, 1 reply; 5+ messages in thread
From: David Brownell @ 2003-03-27  3:53 UTC (permalink / raw)
  To: linux-kernel, Patrick Mochel

I've noticed that recent kernels don't clean up device
attribute files correctly when they're removed.  Instead,
they're left in the directory with a refcount of zero.

That refcount stays even when the file is recreated later;
and the contents can be read.  Delete them again, and now
the refcount is 65535 ... though now reading the contents
may cause oopsing.

This worked correctly at some point last month:  the file
no longer appeared in sysfs after deletion.

Got Patch?

- Dave



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

end of thread, other threads:[~2003-03-27 23:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-27  3:53 2.5.recent: device_remove_file() doesn't David Brownell
2003-03-27 17:58 ` Patrick Mochel
2003-03-27 20:04   ` Greg KH
2003-03-27 22:37     ` Mike Anderson
2003-03-27 23:34   ` David Brownell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.