[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <m13ad2xi46.fsf@fess.ebiederm.org>
Date: Tue, 24 Mar 2009 22:54:17 -0700
From: ebiederm@...ssion.com (Eric W. Biederman)
To: Alex Chiang <achiang@...com>
Cc: htejun@...il.com, greg@...ah.com, cornelia.huck@...ibm.com,
stern@...land.harvard.edu, kay.sievers@...y.org,
rusty@...tcorp.com.au, linux-kernel@...r.kernel.org
Subject: Re: [RFC PATCH 0/3] sysfs: allow suicide
Interesting.
Fixing a read/writer deadlock by allowing the writers to nest
inside the readers.
My first impression is that it is too clever.
Furthermore I think this is walking around the edges of a more
general problem. How should we serial hotplug and hotunplug
in general. In what context should remove methods run in.
My impression is that we have a huge hole in our infrastructure
for hotplug drivers. Problems like how do we get a user space
context for the code to run in and how do we handle
multiple hotplug actions for overlapping device trees from
stomping on each other.
My hypothesis is once we solve this for the general case of
device hotplug and removal we won't need special support from
sysfs. At least not in the suicidal way.
We still have very weird cases such as the lock inversion that
we have today between rtnl_lock and active reference count,
coming from the networking code.
Eric
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists