mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jeff Garzik <jeff@garzik.org>
To: Linux-SCSI <linux-scsi@vger.kernel.org>,
	LKML <linux-kernel@vger.kernel.org>
Subject: [PATCH v5 0/2] SCSI asynchronous event notification API
Date: Mon, 29 Oct 2007 17:31:55 -0400 (EDT)	[thread overview]
Message-ID: <1e0190fe71e148eb044c16b805738908ae2fe0bc.1193692827.git.jeff@garzik.org> (raw)
In-Reply-To: <1193677315.3383.59.camel@localhost.localdomain>

This is the next revision of the SCSI event notification infrastructure
patchset, enabling SATA Asynchronous Notification ("AN") for CD/DVD
devices that support it.

For devices that support SATA AN (only very recent ones do), this means
that HAL and other userspace utilities no longer need to repeatedly poll
the CD/DVD device to determine if the user has changed the media.

This revision takes into account James' comments from earlier today,
up to patchset revision #4 (this one is revision 5).

Changes since last revision:

1) sysfs 'store' operation is implemented, to eliminate any confusion
   about how it should work.

2) if we are going to emit events more complex than a single "I'm
   asserted" bit, then we cannot use the nifty bitmap.h stuff.

a) struct scsi_event is created.

b) sdev_evt_send() -- send an event.  event intentionally and
   silently dropped, if not in supported_events mask.

c) sdev_evt_alloc() -- allocate an event.  structured such that
   future event types can be added easily.

d) sdev_evt_send_simple() -- for simple events where we only need
   to know the event type, we can use this simple interface (libata uses
   this).

e) Events are sent one-at-a-time.  Unlike the bitmap, complex events
   should not be merged together.


  reply	other threads:[~2007-10-29 21:32 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-29 14:42 [PATCH v4 0/2] [SCSI] Asynchronous event notification infrastructure Jeff Garzik
2007-10-29 14:42 ` [PATCH v4 1/2] SCSI: " Jeff Garzik
2007-10-29 15:51   ` James Bottomley
2007-10-29 16:07     ` Jeff Garzik
2007-10-29 16:17       ` James Bottomley
2007-10-29 16:29         ` Jeff Garzik
2007-10-29 17:01           ` James Bottomley
2007-10-29 21:31             ` Jeff Garzik [this message]
2007-10-29 21:31             ` [PATCH v5 1/2] SCSI: add asynchronous event notification API Jeff Garzik
2007-10-29 21:31             ` [PATCH v5 2/2] libata: Utilize new SCSI event infrastructure Jeff Garzik
2007-10-29 14:42 ` [PATCH v4 " Jeff Garzik
2007-10-29 15:43 ` [PATCH v4 0/2] [SCSI] Asynchronous event notification infrastructure James Bottomley
2007-10-29 15:58   ` Jeff Garzik
2007-10-29 16:10     ` James Bottomley
2007-10-29 16:24       ` Jeff Garzik
2007-10-29 16:34         ` James Bottomley
2007-10-29 16:48           ` Jeff Garzik

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=1e0190fe71e148eb044c16b805738908ae2fe0bc.1193692827.git.jeff@garzik.org \
    --to=jeff@garzik.org \
    --cc=linux-kernel@vger.kernel.org \
    --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

all inboxes | Powered by JetHome®