Re: [PATCH] libata: Handle bay devices in dock stations

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Tejun Heo
Date: Sunday, June 8, 2008 - 9:56 pm

Matthew Garrett wrote:

Ah... okay.  Stupid me.  libata EH always resets a frozen port to 
un-freeze it even if it's unoccupied to listen for hotplug events.  So, 
if dock notifies device removal after the actual device is gone && the 
port is frozen as a result, libata EH will try to reset the port after 
the device is gone and in this case the controller locks up the whole 
machine for that.  If schedule_eh is used, libata EH just removes the 
device and does nothing else and the controller is happy.

This isn't too safe tho.  There can be other things which can trigger 
port reset.  ie. hotplug request from userland, in-flight IOs at the 
time of dock removal, etc...  Maybe we need to implement a flag to 
indicate that the port is dead and shouldn't be accessed in any way.

Thanks.

-- 
tejun
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] libata: Handle bay devices in dock stations, Holger Macht, (Wed May 28, 7:38 am)
Re: [PATCH] libata: Handle bay devices in dock stations, Andrew Morton, (Wed May 28, 8:02 pm)
Re: [PATCH] libata: Handle bay devices in dock stations, Matthew Garrett, (Thu May 29, 6:22 am)
Re: [PATCH] libata: Handle bay devices in dock stations, Matthew Garrett, (Thu May 29, 6:32 am)
Re: [PATCH] libata: Handle bay devices in dock stations, Holger Macht, (Thu May 29, 6:33 am)
Re: [PATCH] libata: Handle bay devices in dock stations, Holger Macht, (Thu May 29, 6:39 am)
Re: [PATCH] libata: Handle bay devices in dock stations, Matthew Garrett, (Thu May 29, 6:40 am)
Re: [PATCH] libata: Handle bay devices in dock stations, Matthew Garrett, (Thu May 29, 7:02 am)
Re: [PATCH] libata: Handle bay devices in dock stations, Holger Macht, (Thu May 29, 7:14 am)
Re: [PATCH] libata: Handle bay devices in dock stations, Matthew Garrett, (Thu May 29, 7:35 am)
Re: [PATCH] libata: Handle bay devices in dock stations, Matthew Garrett, (Thu May 29, 7:49 am)
Re: [PATCH] libata: Handle bay devices in dock stations, Holger Macht, (Thu May 29, 9:32 am)
Re: [PATCH] libata: Handle bay devices in dock stations, Holger Macht, (Thu May 29, 9:46 am)
Re: [PATCH] libata: Handle bay devices in dock stations, Henrique de Moraes H ..., (Thu May 29, 10:51 am)
Re: [PATCH] libata: Handle bay devices in dock stations, Matthew Garrett, (Tue Jun 3, 11:13 am)
Re: [PATCH] libata: Handle bay devices in dock stations, Holger Macht, (Tue Jun 3, 11:23 am)
Re: [PATCH] libata: Handle bay devices in dock stations, Holger Macht, (Tue Jun 3, 11:27 am)
Re: [PATCH] libata: Handle bay devices in dock stations, Matthew Garrett, (Tue Jun 3, 11:29 am)
Re: [PATCH] libata: Handle bay devices in dock stations, Matthew Garrett, (Sun Jun 8, 6:48 pm)
Re: [PATCH] libata: Handle bay devices in dock stations, Tejun Heo, (Sun Jun 8, 9:56 pm)