]> git.baikalelectronics.ru Git - kernel.git/commit
cdrom: protect cdrom_device_info list by mutex
authorAkinobu Mita <akinobu.mita@gmail.com>
Wed, 26 Mar 2008 11:09:01 +0000 (12:09 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Mon, 21 Apr 2008 07:50:08 +0000 (09:50 +0200)
commit213ea5a27a759665e260ab8c6314aeeea5930cdf
tree2b10f19df249adc98fe5a6fae5d6a5788406b3be
parentd86ed14498ec7c260d68313fa1b53331daa5adb3
cdrom: protect cdrom_device_info list by mutex

This patch protects the list of cdrom_device_info by cdrom_mutex
when the file in /proc/sys/dev/cdrom/ is written.

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
drivers/cdrom/cdrom.c