summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorSimon Arlott <simon@fire.lp0.eu>2011-02-09 14:21:07 +0100
committerJens Axboe <jaxboe@fusionio.com>2011-02-09 14:22:37 +0100
commitb8cf0e0e552ca48e9a00f518aeb4f5e03984022b (patch)
tree83787d1d9b21764cc7685311bcd99ccdb3be2db8 /kernel
parentcfq-iosched: Don't wait if queue already has requests. (diff)
downloadlinux-b8cf0e0e552ca48e9a00f518aeb4f5e03984022b.tar.xz
linux-b8cf0e0e552ca48e9a00f518aeb4f5e03984022b.zip
cdrom: support devices that have check_events but not media_changed
Commit 93aae17af1172c40c6f74b7294e93a90c3cfaa5d ("sr: implement sr_check_events()") replaced the media_changed op with the check_events op in drivers/scsi/sr.c All users that check for the CDC_MEDIA_CHANGED capbility try both the check_events op and the media_changed op, but register_cdrom() was requiring media_changed. This patch fixes the capability checking. The cdrom_select_disc ioctl is also using the two operations, so they should be required for CDC_SELECT_DISC too. Signed-off-by: Simon Arlott <simon@fire.lp0.eu> Cc: Tejun Heo <tj@kernel.org> Cc: Kay Sievers <kay.sievers@vrfy.org> Tested-by: Chris Clayton <chris2553@googlemail.com> Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions