Kai-Heng Feng
3a4b09605f
libata: Use per port sync for detach
...
[ Upstream commit b5292111de9bb70cba3489075970889765302136 ]
Commit 130f4caf145c ("libata: Ensure ata_port probe has completed before
detach") may cause system freeze during suspend.
Using async_synchronize_full() in PM callbacks is wrong, since async
callbacks that are already scheduled may wait for not-yet-scheduled
callbacks, causes a circular dependency.
Instead of using big hammer like async_synchronize_full(), use async
cookie to make sure port probe are synced, without affecting other
scheduled PM callbacks.
Fixes: 130f4caf145c ("libata: Ensure ata_port probe has completed before detach")
Suggested-by: John Garry <john.garry@huawei.com >
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com >
Tested-by: John Garry <john.garry@huawei.com >
BugLink: https://bugs.launchpad.net/bugs/1867983
Signed-off-by: Jens Axboe <axboe@kernel.dk >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2020-06-30 15:38:31 -04:00
..
2015-06-03 01:37:49 -04:00
2020-01-12 11:24:14 +01:00
2015-06-10 11:15:17 +09:00
2017-04-12 12:41:20 +02:00
2015-01-28 18:45:23 -05:00
2016-02-18 12:41:17 -05:00
2016-02-11 10:12:04 -05:00
2016-04-01 10:30:30 -04:00
2016-09-30 10:28:51 +02:00
2016-06-15 14:26:41 -04:00
2016-08-10 12:16:49 -04:00
2015-01-28 18:45:23 -05:00
2015-01-28 18:45:23 -05:00
2016-03-11 12:40:34 -05:00
2020-02-28 15:42:56 +01:00
2016-09-06 12:38:17 -04:00
2014-05-09 22:37:49 -04:00
2014-08-28 08:53:40 -04:00
2019-11-25 09:53:22 +01:00
2020-01-12 11:24:13 +01:00
2020-01-29 10:24:30 +01:00
2014-04-01 12:48:54 -07:00
2020-06-30 15:38:31 -04:00
2019-08-04 09:33:22 +02:00
2020-04-24 07:58:59 +02:00
2020-04-24 07:58:48 +02:00
2019-09-06 10:19:35 +02:00
2016-05-09 12:36:46 -04:00
2017-10-08 10:26:11 +02:00
2019-08-25 10:51:46 +02:00
2016-04-04 12:07:41 -04:00
2016-06-16 16:24:55 -04:00
2014-05-09 22:37:49 -04:00
2014-05-09 22:37:49 -04:00
2017-09-09 17:39:41 +02:00
2016-06-28 12:49:40 -04:00
2014-05-09 22:37:49 -04:00
2014-10-20 16:20:17 +02:00
2016-09-22 11:48:46 -04:00
2016-05-27 11:22:46 -04:00
2015-04-08 10:55:05 -04:00
2016-02-16 00:20:03 +01:00
2014-05-09 22:37:49 -04:00
2014-05-09 22:37:49 -04:00
2015-04-08 10:55:05 -04:00
2015-02-03 07:04:44 -05:00
2014-05-09 22:37:49 -04:00
2017-09-09 17:39:41 +02:00
2014-05-09 22:37:49 -04:00
2014-05-09 22:37:49 -04:00
2019-11-25 09:53:29 +01:00
2014-02-13 16:40:56 -05:00
2015-04-08 10:55:05 -04:00
2014-02-13 16:40:56 -05:00
2016-07-12 11:02:05 -04:00
2016-04-15 16:53:14 -04:00
2014-10-20 16:20:17 +02:00
2015-03-18 22:39:17 +01:00
2015-10-15 10:58:53 -04:00
2014-05-09 22:37:49 -04:00
2014-10-20 16:20:17 +02:00
2015-08-24 15:27:11 -05:00
2014-03-11 08:30:53 -04:00
2016-02-05 16:29:28 -06:00
2016-05-27 11:27:23 -04:00
2014-10-20 16:20:17 +02:00
2014-05-09 22:37:49 -04:00
2014-05-09 22:37:49 -04:00
2016-08-30 11:59:47 -04:00
2014-05-09 22:37:49 -04:00
2014-05-09 22:37:49 -04:00
2016-09-22 11:46:52 -04:00
2015-01-28 18:45:23 -05:00
2014-05-09 22:37:49 -04:00
2014-05-09 22:37:49 -04:00
2014-05-09 22:37:49 -04:00
2014-10-20 16:20:17 +02:00
2014-02-13 16:40:56 -05:00
2014-05-09 22:37:49 -04:00
2015-04-08 10:55:05 -04:00
2014-05-09 22:37:49 -04:00
2015-01-28 18:45:23 -05:00
2015-09-10 17:02:04 -04:00
2014-05-09 22:37:49 -04:00
2016-02-18 11:26:27 -05:00
2014-05-09 22:37:49 -04:00
2014-05-09 22:37:49 -04:00
2015-09-25 11:50:15 -04:00
2014-05-09 22:37:49 -04:00
2014-05-09 22:37:49 -04:00
2014-10-07 17:10:14 -04:00
2015-04-08 10:55:05 -04:00
2014-05-09 22:37:49 -04:00
2014-05-09 22:37:49 -04:00
2014-05-09 22:37:49 -04:00
2014-05-09 22:37:49 -04:00
2015-04-08 10:55:05 -04:00
2016-07-19 14:32:04 -04:00
2015-12-07 10:25:57 -05:00
2016-05-27 15:26:11 -07:00
2015-04-08 10:55:05 -04:00
2017-02-09 08:08:26 +01:00
2015-05-25 20:06:55 -04:00
2015-04-08 10:55:05 -04:00
2015-04-08 10:55:05 -04:00
2019-02-12 19:44:54 +01:00
2015-04-08 10:55:05 -04:00
2015-11-30 10:02:49 -05:00
2014-05-09 22:37:49 -04:00
2015-04-16 13:53:32 -05:00
2015-12-31 21:33:42 -05:00
2014-02-13 16:40:56 -05:00
2017-10-08 10:26:09 +02:00
2015-04-08 10:55:05 -04:00