kernel/drivers/scsi/sr.h
.. .. @@ -20,6 +20,7 @@ 20 20 21 21 #include <linux/genhd.h> 22 22 #include <linux/kref.h> 23 +#include <linux/mutex.h>23 24 24 25 #define MAX_RETRIES 3 25 26 #define SR_TIMEOUT (30 * HZ) .. .. @@ -51,6 +52,7 @@ 51 52 bool ignore_get_event:1; /* GET_EVENT is unreliable, use TUR */ 52 53 53 54 struct cdrom_device_info cdi; 55 + struct mutex lock;54 56 /* We hold gendisk and scsi_device references on probe and use 55 57 * the refs on this kref to decide when to release them */ 56 58 struct kref kref;