Re: [PATCH #upstream-fixes] libata: port and host should be stopped before hardware resources are released

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

 



On Thu, Nov 08, 2007 at 01:09:00PM +0900, Tejun Heo wrote:
> Port / host stop calls used to be made from ata_host_release() which
> is called after all hardware resources acquired after host allocation
> are released.  This is wrong as port and host stop routines often
> access the hardware.
> 
> Add separate devres for port / host stop which is invoked right after
> IRQ is released but with all other hardware resources intact.  The
> devres is added iff ->host_stop and/or ->port_stop exist.
> 
> This problem has been spotted by Mark Lord.
> 
> Signed-off-by: Tejun Heo <htejun@xxxxxxxxx>
> Cc: Mark Lord <liml@xxxxxx>
> ---
> Jeff, this really needs to get into 2.6.24.  Although it hasn't caused
> any real problem (yet), ahci is one of the affected drivers and it's
> poking released iomems in its port_ops.

applied


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

[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux