James Bottomley wrote:Two problems with what you just described: 1) "value indicates current event state" is a new concept in this thread (maybe you were thinking this all along, but I didn't get that from your writing). Watching the sysfs node for event activity is definitely outside the scope of this work, and IMO not very useful. The time from when LLDD calls sdev_evt_notify() until uevent completion is very short, so the time window for actually receiving a useful value in your scenario is also short. My patch presented the attributes purely as control nodes, only affected sdev->supported_events and nothing more. You seem to be suggesting exporting the true-for-only-a-few-milliseconds activity state, rather then enable/disable state. 2) Event support itself is dynamic, which causes me to revisit the "complexity" argument. In libata, for example, we only note that the media-change event is supported after some time passes -- not in the initial slave_config. Or error handler may disable it at runtime because that event is problematic. As such, that implies that the LLDD (with help from scsi_lib) is dynamically adding and removing these attributes at runtime -- a lot more complexity than is really needed AFAICS. It is easy and straightforward for the driver to set a bit. We cannot assume the state of event support bits are constant from modprobe/slave_config time. Jeff -
| Ingo Molnar | [announce] "kill the Big Kernel Lock (BKL)" tree |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Emmanuel Florac | RAID-1 performance under 2.4 and 2.6 |
| Con Kolivas | Re: -mm merge plans for 2.6.23 |
git: | |
| Gerrit Renker | [PATCH 0/37] dccp: Feature negotiation - last call for comments |
| David Miller | [GIT]: Networking |
| Eric W. Biederman | Re: 2.6.24-rc3: find complains about /proc/net |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
