From: Kay Sievers <kay.sievers@vrfy.org>
To: Jeff Garzik <jeff@garzik.org>
Cc: kristen accardi <kaccardi@gmail.com>,
scsi <linux-scsi@vger.kernel.org>, David Zeuthen <david@fubar.dk>
Subject: Re: media change events for polled devices broken with current sdev_evt_send()
Date: Mon, 17 Mar 2008 16:36:25 +0100 [thread overview]
Message-ID: <1205768185.6338.18.camel@lov.site> (raw)
In-Reply-To: <1204795762.3136.27.camel@lov.site>
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
prev parent reply other threads:[~2008-03-17 15:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1205768185.6338.18.camel@lov.site \
--to=kay.sievers@vrfy.org \
--cc=david@fubar.dk \
--cc=jeff@garzik.org \
--cc=kaccardi@gmail.com \
--cc=linux-scsi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox