Re: [Bluez-devel] Oops involving RFCOMM and sysfs

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Al Viro <viro@...>
Cc: Gabor Gombas <gombasg@...>, Dave Young <hidave.darkstar@...>, <linux-kernel@...>, <bluez-devel@...>, Greg KH <greg@...>, <ebiederm@...>, <kay.sievers@...>
Date: Saturday, January 5, 2008 - 11:54 pm

Hello,

Al Viro wrote:

There really hasn't been any stone-set rules for how sysfs can be used
and what operations are allowed simultaneously although sysfs
implementation always had a lot of assumptions about which ops can and
can't be done simultaneously.

The general assumption is that the caller is responsible for its and its
children's lifetime management which is usually followed as sysfs nodes
are removed when a device goes away or driver detaches at which point no
other ops should be in progress anyway.

I think this stems partially from tight coupling with kobject / driver
model.  kobject and driver model have certain rules about how they can
be used (again not explicit enough) and sysfs implementation kind of
piggy backed on those rules and added its own assumptions on top of it.
 After a while, it's hard to track what's assumed where and implementing
or changing one feature somewhere breaks some assumption elsewhere.
This is the primary reason why I think sysfs should be an independent
component which the driver model uses not something intertwined into
driver model while having mostly separate implementation.


(cc'ing Kay Sievers) IIRC, that's device class compatibility thing.
Overlapping move's are okay tho as they're protected from each other by
sysfs_rename_mutex.  I'll take a look at the rfcomm code and see what's
going on tomorrow.  Gotta hit the road now.

Thanks.

-- 
tejun
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Oops involving RFCOMM and sysfs, Gabor Gombas, (Fri Dec 28, 1:32 pm)
Re: [Bluez-devel] Oops involving RFCOMM and sysfs, Dave Young, (Sat Dec 29, 4:07 am)
Re: [Bluez-devel] Oops involving RFCOMM and sysfs, Gabor Gombas, (Wed Jan 2, 11:16 am)
Re: [Bluez-devel] Oops involving RFCOMM and sysfs, Gabor Gombas, (Mon Jan 7, 10:13 am)
Re: [Bluez-devel] Oops involving RFCOMM and sysfs, Tejun Heo, (Mon Jan 7, 11:24 am)
Re: [Bluez-devel] Oops involving RFCOMM and sysfs, Gabor Gombas, (Mon Jan 7, 5:00 pm)
Re: [Bluez-devel] Oops involving RFCOMM and sysfs, Tejun Heo, (Tue Jan 8, 5:42 am)
Re: [Bluez-devel] Oops involving RFCOMM and sysfs, Gabor Gombas, (Tue Jan 8, 9:32 am)
Re: [Bluez-devel] Oops involving RFCOMM and sysfs, Tejun Heo, (Wed Jan 9, 5:16 am)
Re: [Bluez-devel] Oops involving RFCOMM and sysfs, Gabor Gombas, (Thu Jan 10, 6:15 am)
Re: [Bluez-devel] Oops involving RFCOMM and sysfs, Dave Young, (Wed Jan 9, 9:11 pm)
Re: [Bluez-devel] Oops involving RFCOMM and sysfs, Gabor Gombas, (Fri Jan 11, 7:09 pm)
Re: [Bluez-devel] Oops involving RFCOMM and sysfs, Dave Young, (Mon Jan 14, 3:05 am)
Re: [Bluez-devel] Oops involving RFCOMM and sysfs, Cornelia Huck, (Mon Jan 14, 8:52 am)
Re: [Bluez-devel] Oops involving RFCOMM and sysfs, Dave Young, (Mon Jan 14, 9:57 pm)
Re: [Bluez-devel] Oops involving RFCOMM and sysfs, Dave Young, (Tue Jan 15, 9:02 pm)
Re: [Bluez-devel] Oops involving RFCOMM and sysfs, Gabor Gombas, (Wed Jan 16, 7:06 pm)
Re: [Bluez-devel] Oops involving RFCOMM and sysfs, Dave Young, (Thu Jan 17, 3:24 am)
Re: [Bluez-devel] Oops involving RFCOMM and sysfs, Dave Young, (Thu Jan 17, 4:15 am)
Re: [Bluez-devel] Oops involving RFCOMM and sysfs, Cornelia Huck, (Thu Jan 17, 7:42 am)
Re: [Bluez-devel] Oops involving RFCOMM and sysfs, Dave Young, (Thu Jan 17, 11:37 pm)
Re: [Bluez-devel] Oops involving RFCOMM and sysfs, Cornelia Huck, (Fri Jan 18, 5:19 am)
Re: [Bluez-devel] Oops involving RFCOMM and sysfs, Cornelia Huck, (Fri Jan 18, 6:23 am)
Re: [Bluez-devel] Oops involving RFCOMM and sysfs, Dave Young, (Fri Jan 18, 6:34 am)
Re: [Bluez-devel] Oops involving RFCOMM and sysfs, Cornelia Huck, (Fri Jan 18, 7:26 am)
Re: [Bluez-devel] Oops involving RFCOMM and sysfs, Dave Young, (Sun Jan 20, 11:15 pm)
Re: [Bluez-devel] Oops involving RFCOMM and sysfs, Cornelia Huck, (Wed Jan 9, 11:57 am)
Re: [Bluez-devel] Oops involving RFCOMM and sysfs, Tejun Heo, (Sat Jan 5, 10:30 am)
Re: [Bluez-devel] Oops involving RFCOMM and sysfs, Tejun Heo, (Sat Jan 5, 10:07 pm)
Re: [Bluez-devel] Oops involving RFCOMM and sysfs, Tejun Heo, (Sun Jan 6, 10:37 pm)
Re: [Bluez-devel] Oops involving RFCOMM and sysfs, Eric W. Biederman, (Mon Jan 7, 4:21 am)
Re: [Bluez-devel] Oops involving RFCOMM and sysfs, Tejun Heo, (Mon Jan 7, 5:17 am)
Re: [Bluez-devel] Oops involving RFCOMM and sysfs, Tejun Heo, (Mon Jan 7, 5:18 am)
Re: [Bluez-devel] Oops involving RFCOMM and sysfs, Eric W. Biederman, (Mon Jan 7, 6:33 am)
Re: [Bluez-devel] Oops involving RFCOMM and sysfs, Tejun Heo, (Sat Jan 5, 10:54 pm)
Re: [Bluez-devel] Oops involving RFCOMM and sysfs, Tejun Heo, (Sat Jan 5, 11:54 pm)
Re: [Bluez-devel] Oops involving RFCOMM and sysfs, Gabor Gombas, (Thu Jan 3, 9:16 am)
Re: [Bluez-devel] Oops involving RFCOMM and sysfs, Dave Young, (Thu Jan 3, 9:05 pm)
Re: [Bluez-devel] Oops involving RFCOMM and sysfs, Gabor Gombas, (Mon Jan 7, 10:10 am)
Re: [Bluez-devel] Oops involving RFCOMM and sysfs, Tejun Heo, (Mon Jan 7, 4:07 am)
Re: [Bluez-devel] Oops involving RFCOMM and sysfs, Gabor Gombas, (Wed Jan 2, 10:48 am)