diff options
author | Tejun Heo <tj@kernel.org> | 2010-12-28 16:20:47 +0100 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2011-01-14 16:17:35 +0100 |
commit | f4013c3879d1bbd9f3ab8351185decd049502368 (patch) | |
tree | 553f8978d8126d72c37e1ba172a36d80f6e9040f /Documentation/target/tcm_mod_builder.txt | |
parent | [SCSI] sd: implement sd_check_events() (diff) | |
download | linux-f4013c3879d1bbd9f3ab8351185decd049502368.tar.xz linux-f4013c3879d1bbd9f3ab8351185decd049502368.zip |
[SCSI] sd,sr: kill compat SDEV_MEDIA_CHANGE event
SDEV_MEDIA_CHANGE event was first added by commit a341cd0f (SCSI: add
asynchronous event notification API) for SATA AN support and then
extended to cover generic media change events by commit 285e9670
([SCSI] sr,sd: send media state change modification events).
This event was mapped to block device in userland with all properties
stripped to simulate CHANGE event on the block device, which, in turn,
was used to trigger further userspace action on media change.
The recent addition of disk event framework kept this event for
backward compatibility but it turns out to be unnecessary and causes
erratic and inefficient behavior. The new disk event generates proper
events on the block devices and the compat events are mapped to block
device with all properties stripped, so the block device ends up
generating multiple duplicate events for single actual event.
This patch removes the compat event generation from both sr and sd as
suggested by Kay Sievers. Both existing and newer versions of udev
and the associated tools will behave better with the removal of these
events as they from the beginning were expecting events on the block
devices.
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'Documentation/target/tcm_mod_builder.txt')
0 files changed, 0 insertions, 0 deletions