android_kernel_xiaomi_sm8350/drivers/cdrom
Tejun Heo d4dc210f69 block: don't block events on excl write for non-optical devices
Disk event code automatically blocks events on excl write.  This is
primarily to avoid issuing polling commands while burning is in
progress.  This behavior doesn't fit other types of devices with
removeable media where polling commands don't have adverse side
effects and door locking usually doesn't exist.

This patch introduces new genhd flag which controls the auto-blocking
behavior and uses it to enable auto-blocking only on optical devices.

Note for stable: 2.6.38 and later only

Cc: stable@kernel.org
Signed-off-by: Tejun Heo <tj@kernel.org>
Reported-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
2011-04-21 20:54:46 +02:00
..
cdrom.c cdrom: always check_disk_change() on open 2011-04-21 20:54:44 +02:00
gdrom.c gdrom,viocd: Convert to bdops->check_events() 2011-03-09 19:54:28 +01:00
Makefile cdrom: Add support for Sega Dreamcast GD-ROM. 2008-01-28 13:19:04 +09:00
viocd.c block: don't block events on excl write for non-optical devices 2011-04-21 20:54:46 +02:00