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)
commit032d8d90ba23e1770604bbb1102ec77f5aa8ae44
tree2b10f19df249adc98fe5a6fae5d6a5788406b3be
parent3c3f4e012ab3471e8bd19220ed897ae9700e5fdd
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