aboutsummaryrefslogtreecommitdiffstats
path: root/include/target/configfs_macros.h
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2010-12-18 18:42:23 +0100
committerJames Bottomley <James.Bottomley@suse.de>2011-01-14 09:17:34 -0600
commit2bae0093cab4ee0a7a8728fdfc35b74569350863 (patch)
treec80ef5a2f293ef01f72561535f476955a465ddba /include/target/configfs_macros.h
parentMerge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6 (diff)
downloadlinux-dev-2bae0093cab4ee0a7a8728fdfc35b74569350863.tar.xz
linux-dev-2bae0093cab4ee0a7a8728fdfc35b74569350863.zip
[SCSI] sd: implement sd_check_events()
Replace sd_media_change() with sd_check_events(). * Move media removed logic into set_media_not_present() and media_not_present() and set sdev->changed iff an existing media is removed or the device indicates UNIT_ATTENTION. * Make sd_check_events() sets sdev->changed if previously missing media becomes present. * Event is reported only if sdev->changed is set. This makes media presence event reported if scsi_disk->media_present actually changed or the device indicated UNIT_ATTENTION. For backward compatibility, SDEV_EVT_MEDIA_CHANGE is generated each time sd_check_events() detects media change event. [jejb: fix boot failure] Signed-off-by: Tejun Heo <tj@kernel.org> Acked-by: Jens Axboe <jaxboe@fusionio.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'include/target/configfs_macros.h')
0 files changed, 0 insertions, 0 deletions