|
@@ -2162,10 +2162,15 @@ void sdev_evt_send(struct scsi_device *sdev, struct scsi_event *evt)
|
|
{
|
|
{
|
|
unsigned long flags;
|
|
unsigned long flags;
|
|
|
|
|
|
|
|
+#if 0
|
|
|
|
+ /* FIXME: currently this check eliminates all media change events
|
|
|
|
+ * for polled devices. Need to update to discriminate between AN
|
|
|
|
+ * and polled events */
|
|
if (!test_bit(evt->evt_type, sdev->supported_events)) {
|
|
if (!test_bit(evt->evt_type, sdev->supported_events)) {
|
|
kfree(evt);
|
|
kfree(evt);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
+#endif
|
|
|
|
|
|
spin_lock_irqsave(&sdev->list_lock, flags);
|
|
spin_lock_irqsave(&sdev->list_lock, flags);
|
|
list_add_tail(&evt->node, &sdev->event_list);
|
|
list_add_tail(&evt->node, &sdev->event_list);
|