Tejun Heo
6ddcd3b020
libata: during revalidation, check n_sectors after device is configured
...
Device might be resized during ata_dev_configure() due to HPA or
(later) ACPI _GTF. Currently it's worked around by caching n_sectors
before turning off HPA. The cached original size is overwritten if
the device is reconfigured without being hardreset - which always
happens after configuring trasnfer mode. If the device gets hardreset
for some reason after that, revalidation fails with -ENODEV.
This patch makes size checking more robust by moving n_sectors check
from ata_dev_reread_id() to ata_dev_revalidate() after the device is
fully configured. No matter what happens during configuration, a
device must have the same n_sectors after fully configured to be
treated as the same device.
Signed-off-by: Tejun Heo <htejun@gmail.com >
Signed-off-by: Jeff Garzik <jeff@garzik.org >
2007-05-16 01:18:30 -04:00
..
2007-05-08 11:15:00 -07:00
2007-05-08 11:15:16 -07:00
2007-05-07 12:34:24 -07:00
2007-05-08 18:00:38 -07:00
2007-05-09 13:26:52 +01:00
2007-05-10 23:47:43 -07:00
2007-05-10 23:47:43 -07:00
2007-05-10 23:47:43 -07:00
2007-05-10 23:47:43 -07:00
2007-05-09 18:51:36 -07:00
2007-05-08 11:15:16 -07:00
2007-05-09 12:30:54 -07:00
2007-05-10 03:52:22 -04:00
2007-05-11 08:29:37 -07:00
2007-05-11 08:29:37 -07:00
2007-05-11 08:29:36 -07:00
2006-09-06 11:00:02 -07:00
2005-08-30 22:44:20 -05:00
2007-05-11 05:38:26 -04:00
2007-03-16 19:25:05 -07:00
2006-10-11 11:14:22 -07:00
2007-05-09 12:30:51 -07:00
2007-05-07 12:12:55 -07:00
2007-01-30 08:26:45 -08:00
2007-05-08 11:15:15 -07:00
2007-05-09 12:30:56 -07:00
2007-05-14 12:16:01 -07:00
2007-05-09 12:30:56 -07:00
2007-05-09 12:30:56 -07:00
2007-05-09 12:30:56 -07:00
2007-05-07 12:13:00 -07:00
2007-05-09 12:30:56 -07:00
2007-05-08 11:15:27 -07:00
2007-05-08 11:15:27 -07:00
2006-10-03 08:04:12 -07:00
2007-05-08 11:15:13 -07:00
2007-05-08 11:15:05 -07:00
2007-05-10 18:24:13 +02:00
2007-05-08 11:15:25 -07:00
2007-05-08 11:15:03 -07:00
2006-12-22 08:55:48 -08:00
2007-04-27 10:57:31 -07:00
2007-05-08 11:15:10 -07:00
2007-05-08 11:15:26 -07:00
2007-02-09 17:39:36 -05:00
2007-05-08 11:15:14 -07:00
2007-05-08 11:15:10 -07:00
2007-05-07 12:12:58 -07:00
2007-05-07 12:13:02 -07:00
2007-05-11 08:29:36 -07:00
2007-05-09 08:57:56 +02:00
2007-05-08 11:15:12 -07:00
2007-05-09 08:57:56 +02:00
2007-05-09 12:30:57 -07:00
2007-05-10 18:24:13 +02:00
2007-05-10 18:24:13 +02:00
2007-05-08 11:15:31 -07:00
2006-12-08 08:28:40 -08:00
2007-05-08 11:15:04 -07:00
2007-05-09 12:30:55 -07:00
2007-05-09 08:58:16 +02:00
2007-05-11 13:29:54 +02:00
2007-05-09 12:30:56 -07:00
2007-02-05 10:00:38 +01:00
2007-05-09 02:52:51 +02:00
2007-05-09 12:30:56 -07:00
2007-05-09 08:58:21 +02:00
2007-05-09 08:58:21 +02:00
2007-05-11 16:56:02 +02:00
2007-05-16 00:51:46 +02:00
2007-05-11 08:29:36 -07:00
2007-05-15 08:54:00 -07:00
2007-05-06 13:21:57 -07:00
2007-05-11 08:29:34 -07:00
2007-05-15 08:54:00 -07:00
2007-05-08 11:15:00 -07:00
2007-05-09 08:58:21 +02:00
2007-05-08 11:15:09 -07:00
2007-05-08 11:15:16 -07:00
2007-05-08 11:15:08 -07:00
2007-05-11 08:29:36 -07:00
2007-05-08 11:15:04 -07:00
2006-04-26 12:56:16 +01:00
2007-05-12 18:11:06 -07:00
2006-12-04 12:45:29 -08:00
2007-05-08 11:15:07 -07:00
2007-05-08 11:15:19 -07:00
2007-05-09 12:30:53 -07:00
2007-05-09 12:30:54 -07:00
2007-05-16 01:18:30 -04:00
2007-05-12 18:11:06 -07:00
2007-05-08 11:15:07 -07:00
2007-05-11 08:29:36 -07:00
2007-05-14 18:51:43 +02:00
2005-10-28 08:16:47 -07:00
2007-05-08 11:15:18 -07:00
2007-05-09 12:30:49 -07:00
2007-05-09 08:58:21 +02:00
2007-05-07 12:12:57 -07:00
2007-05-10 09:26:52 -07:00
2005-04-16 15:20:36 -07:00
2007-05-09 12:30:56 -07:00
2007-05-08 11:15:00 -07:00
2007-05-02 20:58:08 +02:00
2007-05-11 08:29:35 -07:00
2007-05-09 07:14:03 +02:00
2007-05-11 08:29:35 -07:00
2006-11-30 04:40:22 +01:00
2007-05-08 11:15:13 -07:00
2006-12-07 08:39:38 -08:00
2007-05-09 12:30:49 -07:00
2007-05-10 23:45:07 -07:00
2007-05-09 12:30:54 -07:00
2007-05-08 11:15:21 -07:00
2007-05-09 12:30:56 -07:00
2007-05-08 11:15:00 -07:00
2007-05-07 12:12:59 -07:00
2007-05-08 11:14:57 -07:00
2007-05-08 11:15:05 -07:00
2007-05-08 11:15:05 -07:00
2007-05-05 14:15:32 -07:00
2005-05-05 16:36:31 -07:00
2007-05-13 17:41:47 -04:00
2007-05-08 11:15:14 -07:00
2007-05-08 11:15:00 -07:00
2007-05-11 08:29:35 -07:00
2007-05-09 12:30:48 -07:00
2007-05-10 21:28:13 +10:00
2007-05-08 11:15:23 -07:00
2007-05-08 11:14:57 -07:00
2007-05-08 11:15:01 -07:00
2007-05-08 11:15:15 -07:00
2007-05-08 11:15:05 -07:00
2007-05-09 08:57:56 +02:00
2007-05-08 11:15:00 -07:00
2007-05-09 12:30:51 -07:00
2007-05-08 11:15:18 -07:00
2007-05-11 09:58:49 -07:00
2005-04-16 15:20:36 -07:00
2007-05-09 08:57:56 +02:00
2007-05-11 22:02:52 +01:00
2007-05-11 08:29:36 -07:00
2007-05-11 08:29:36 -07:00
2007-05-07 12:12:57 -07:00
2007-05-15 08:54:01 -07:00
2007-05-09 12:30:48 -07:00
2007-04-26 15:48:28 -07:00
2007-05-09 08:58:21 +02:00
2007-05-08 11:15:11 -07:00
2007-05-08 11:14:58 -07:00
2007-05-08 11:15:18 -07:00
2007-04-26 01:54:39 -07:00
2007-05-09 12:56:01 -07:00
2007-05-09 12:30:57 -07:00
2007-05-11 08:29:34 -07:00
2007-05-11 08:29:36 -07:00
2007-04-25 22:28:57 -07:00
2007-05-08 11:15:05 -07:00
2007-05-11 08:29:34 -07:00
2007-05-08 22:41:47 +02:00
2007-05-08 11:15:18 -07:00
2007-05-08 11:15:05 -07:00
2007-05-11 08:29:36 -07:00
2007-05-11 08:29:35 -07:00
2007-05-11 08:29:35 -07:00
2007-05-08 11:15:04 -07:00
2007-05-07 12:12:58 -07:00
2007-05-09 08:57:56 +02:00
2007-05-08 11:15:00 -07:00
2006-01-09 15:32:31 -02:00
2007-05-08 11:15:04 -07:00
2007-05-09 12:30:56 -07:00
2007-05-08 11:15:33 -07:00
2007-05-09 12:30:53 -07:00
2007-05-11 08:29:35 -07:00