]> git.baikalelectronics.ru Git - kernel.git/commit
cdrom: move shared static to cdrom_device_info
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Feb 2012 19:03:14 +0000 (20:03 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 8 Feb 2012 19:03:14 +0000 (20:03 +0100)
commit3de85fecc12adb6dadc0b5381cd4422eadae2470
tree573e6aa79bce8105b3a2508a462d03368ac5214c
parentd25493350bd6c90edfea7f37161549d77c1edd8b
cdrom: move shared static to cdrom_device_info

The keeplocked variable in the cdrom driver is shared across multiple
drives, but set in per-device ioctls.  Move it to the per-device struct,
avoiding that the setting on one drive affects the driver's behavior
when closing another.

[ Impact: limit udev's confusion to one drive when a CD burning program
  unlocks the CD door at the end of burning. ]

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/cdrom/cdrom.c
include/linux/cdrom.h