Re: media change events for polled devices broken with current sdev_evt_send()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ping! Jeff, please answer the question. We need the media change events
for non AN devices.

Thanks,
Kay

On Thu, 2008-03-06 at 10:29 +0100, Kay Sievers wrote:
> Hi Jeff,
>   a341cd0f (SCSI: add asynchronous event notification API)
> introduces an event filter like:
>   +       if (!test_bit(evt->evt_type, sdev->supported_events)) {
>   +               kfree(evt);
>   +               return;
>   +       }
> 
> which breaks:
>   285e9670 (sr,sd: send media state change modification events)
> 
> Why are events sent through sdev_evt_send() filtered? In which case does
> code send an event which we don't want to deliver?
> 
> 
> Side note: introduced with a341cd0f is the sysfs file:
> "evt_media_change", which has a store() method, but has the permission
> 0444. It should either have no store() method assigned, by introducing
> something like DECLARE_EVT_RO(), or the file permission should be
> changed to 0644.
> 
> Thanks,
> Kay

--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux