hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/drivers/scsi/sr.h
....@@ -20,6 +20,7 @@
2020
2121 #include <linux/genhd.h>
2222 #include <linux/kref.h>
23
+#include <linux/mutex.h>
2324
2425 #define MAX_RETRIES 3
2526 #define SR_TIMEOUT (30 * HZ)
....@@ -51,6 +52,7 @@
5152 bool ignore_get_event:1; /* GET_EVENT is unreliable, use TUR */
5253
5354 struct cdrom_device_info cdi;
55
+ struct mutex lock;
5456 /* We hold gendisk and scsi_device references on probe and use
5557 * the refs on this kref to decide when to release them */
5658 struct kref kref;