LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [patch 0/7] Asynchronous Notification for ATAPI devices (v2) - resend
@ 2007-05-04 18:12 Kristen Carlson Accardi
  2007-05-04 20:30 ` James Bottomley
  2007-05-06 10:15 ` Tejun Heo
  0 siblings, 2 replies; 5+ messages in thread
From: Kristen Carlson Accardi @ 2007-05-04 18:12 UTC (permalink / raw)
  To: jeff; +Cc: linux-kernel, linux-scsi, linux-ide, htejun, akpm

This patch series implements Asynchronous Notification (AN) for SATA
ATAPI devices as defined in SATA 2.5 and AHCI 1.1 and higher.  Drives
which support this feature will send a notification when new media is
inserted and removed, preventing the need for user space to poll for
new media.  This support is exposed to user space via a flag that will
be set in /sys/block/sr*/capability_flags.  If the flag is set, user
space can disable polling for the new media, and the genhd driver will
send a KOBJ_CHANGE event with the envp set to MEDIA_CHANGE_EVENT=1.

Note that this patch only implements support for directly attached
drives - AN with drives attached to a port multiplier requires 
additional changes.

Thanks!
Kristen

-- 
-- 

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

* Re: [patch 0/7] Asynchronous Notification for ATAPI devices (v2) - resend
  2007-05-04 18:12 [patch 0/7] Asynchronous Notification for ATAPI devices (v2) - resend Kristen Carlson Accardi
@ 2007-05-04 20:30 ` James Bottomley
  2007-05-04 20:36   ` Kristen Carlson Accardi
  2007-05-06 10:15 ` Tejun Heo
  1 sibling, 1 reply; 5+ messages in thread
From: James Bottomley @ 2007-05-04 20:30 UTC (permalink / raw)
  To: Kristen Carlson Accardi
  Cc: jeff, linux-kernel, linux-scsi, linux-ide, htejun, akpm

On Fri, 2007-05-04 at 11:12 -0700, Kristen Carlson Accardi wrote:
> This patch series implements Asynchronous Notification (AN) for SATA
> ATAPI devices as defined in SATA 2.5 and AHCI 1.1 and higher.  Drives
> which support this feature will send a notification when new media is
> inserted and removed, preventing the need for user space to poll for
> new media.  This support is exposed to user space via a flag that will
> be set in /sys/block/sr*/capability_flags.  If the flag is set, user
> space can disable polling for the new media, and the genhd driver will
> send a KOBJ_CHANGE event with the envp set to MEDIA_CHANGE_EVENT=1.
> 
> Note that this patch only implements support for directly attached
> drives - AN with drives attached to a port multiplier requires 
> additional changes.

I seem to remember when this came up before, the observation was made
that AENs occur for many more things than simple media change notices,
so we should probably have a more generic AEN handling mechanism.  Is
there any plan to move in this direction

James




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

* Re: [patch 0/7] Asynchronous Notification for ATAPI devices (v2) - resend
  2007-05-04 20:30 ` James Bottomley
@ 2007-05-04 20:36   ` Kristen Carlson Accardi
  0 siblings, 0 replies; 5+ messages in thread
From: Kristen Carlson Accardi @ 2007-05-04 20:36 UTC (permalink / raw)
  To: James Bottomley; +Cc: jeff, linux-kernel, linux-scsi, linux-ide, htejun, akpm

On Fri, 04 May 2007 15:30:03 -0500
James Bottomley <James.Bottomley@SteelEye.com> wrote:

> On Fri, 2007-05-04 at 11:12 -0700, Kristen Carlson Accardi wrote:
> > This patch series implements Asynchronous Notification (AN) for SATA
> > ATAPI devices as defined in SATA 2.5 and AHCI 1.1 and higher.  Drives
> > which support this feature will send a notification when new media is
> > inserted and removed, preventing the need for user space to poll for
> > new media.  This support is exposed to user space via a flag that will
> > be set in /sys/block/sr*/capability_flags.  If the flag is set, user
> > space can disable polling for the new media, and the genhd driver will
> > send a KOBJ_CHANGE event with the envp set to MEDIA_CHANGE_EVENT=1.
> > 
> > Note that this patch only implements support for directly attached
> > drives - AN with drives attached to a port multiplier requires 
> > additional changes.
> 
> I seem to remember when this came up before, the observation was made
> that AENs occur for many more things than simple media change notices,
> so we should probably have a more generic AEN handling mechanism.  Is
> there any plan to move in this direction
> 
> James
> 
In this implementation, we use kobject_uevent_env (vs. just 
kobject_uevent in the original implementation) to send a KOBJ_CHANGE
with the enviroment value of MEDIA_CHANGE=1.  For other asynchronous
events, you could still use KOBJ_CHANGE with a different env value.

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

* Re: [patch 0/7] Asynchronous Notification for ATAPI devices (v2) - resend
  2007-05-04 18:12 [patch 0/7] Asynchronous Notification for ATAPI devices (v2) - resend Kristen Carlson Accardi
  2007-05-04 20:30 ` James Bottomley
@ 2007-05-06 10:15 ` Tejun Heo
  2007-05-07 15:20   ` Kristen Carlson Accardi
  1 sibling, 1 reply; 5+ messages in thread
From: Tejun Heo @ 2007-05-06 10:15 UTC (permalink / raw)
  To: Kristen Carlson Accardi; +Cc: jeff, linux-kernel, linux-scsi, linux-ide, akpm

Kristen Carlson Accardi wrote:
> This patch series implements Asynchronous Notification (AN) for SATA
> ATAPI devices as defined in SATA 2.5 and AHCI 1.1 and higher.  Drives
> which support this feature will send a notification when new media is
> inserted and removed, preventing the need for user space to poll for
> new media.  This support is exposed to user space via a flag that will
> be set in /sys/block/sr*/capability_flags.  If the flag is set, user
> space can disable polling for the new media, and the genhd driver will
> send a KOBJ_CHANGE event with the envp set to MEDIA_CHANGE_EVENT=1.
> 
> Note that this patch only implements support for directly attached
> drives - AN with drives attached to a port multiplier requires 
> additional changes.

No objection from me.  BTW, you're not setting ATA_FLAG_AN anywhere in
the patch series, will that be a separate patch?

-- 
tejun

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

* Re: [patch 0/7] Asynchronous Notification for ATAPI devices (v2) - resend
  2007-05-06 10:15 ` Tejun Heo
@ 2007-05-07 15:20   ` Kristen Carlson Accardi
  0 siblings, 0 replies; 5+ messages in thread
From: Kristen Carlson Accardi @ 2007-05-07 15:20 UTC (permalink / raw)
  To: Tejun Heo; +Cc: jeff, linux-kernel, linux-scsi, linux-ide, akpm

On Sun, 06 May 2007 12:15:34 +0200
Tejun Heo <htejun@gmail.com> wrote:

> Kristen Carlson Accardi wrote:
> > This patch series implements Asynchronous Notification (AN) for SATA
> > ATAPI devices as defined in SATA 2.5 and AHCI 1.1 and higher.  Drives
> > which support this feature will send a notification when new media is
> > inserted and removed, preventing the need for user space to poll for
> > new media.  This support is exposed to user space via a flag that will
> > be set in /sys/block/sr*/capability_flags.  If the flag is set, user
> > space can disable polling for the new media, and the genhd driver will
> > send a KOBJ_CHANGE event with the envp set to MEDIA_CHANGE_EVENT=1.
> > 
> > Note that this patch only implements support for directly attached
> > drives - AN with drives attached to a port multiplier requires 
> > additional changes.
> 
> No objection from me.  BTW, you're not setting ATA_FLAG_AN anywhere in
> the patch series, will that be a separate patch?
> 
> -- 
> tejun
> 

Yes - unfortunately I realized I'd forgotten to add that file to my
quilt patch about 5 minutes after I sent it :).  I thought if there were
no other revisions to this patch, I'd just send a separate one, otherwise
I'd incorporate it into the next version.

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

end of thread, other threads:[~2007-05-07 15:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-04 18:12 [patch 0/7] Asynchronous Notification for ATAPI devices (v2) - resend Kristen Carlson Accardi
2007-05-04 20:30 ` James Bottomley
2007-05-04 20:36   ` Kristen Carlson Accardi
2007-05-06 10:15 ` Tejun Heo
2007-05-07 15:20   ` Kristen Carlson Accardi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).