public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* media change events for polled devices broken with current sdev_evt_send()
@ 2008-03-06  9:29 Kay Sievers
  2008-03-17 15:36 ` Kay Sievers
  0 siblings, 1 reply; 2+ messages in thread
From: Kay Sievers @ 2008-03-06  9:29 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: kristen accardi, scsi

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-03-17 15:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-06  9:29 media change events for polled devices broken with current sdev_evt_send() Kay Sievers
2008-03-17 15:36 ` Kay Sievers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox