Message ID | 20191229162423.838150494@linuxfoundation.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:815a:0:0:0:0:0 with SMTP id e87csp5486187ild; Sun, 29 Dec 2019 10:16:35 -0800 (PST) X-Google-Smtp-Source: APXvYqxhIhMixwPmJEDSPPunV/j/jP3h4r4x4z+UpVKsYQnadplUMJKODndn7KPE0uRjmEbQqsYT X-Received: by 2002:a9d:6f85:: with SMTP id h5mr69982517otq.19.1577643395881; Sun, 29 Dec 2019 10:16:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577643395; cv=none; d=google.com; s=arc-20160816; b=yjQDnOATPcpcTc5ZXMpBg9/q92/ZR9BbncdRDz9tmnu/AouJwI1dT8pER+wQOtLbhz tA4UidIWhmvAfeFkDW9Q6lZxq23Squiu2qKJvq79FFTDC+5DDspJ2fZxa8xIc871oQhc i0aWKjucKeaUrdK49m0NX3II102AWrHwRdQkNMKdogeIQtpiICseqQYm4VX6IR814E9J XsOpWRH/atcVBKa2klGTmqWTT+SRo4ZC1MdWp+xhakpF6QvwmZxz6gkOY+NEzqcnUezn YGQSZq0Q5GlF70SE9OVfpwKS0mjdxOUNGSYsJKfk34zM1c/5XnxgGm/ajgt93wg9bEJH 05cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=5DwwcB3bIZPgHJnqaAzJOhApBbMTj3W+NAQtSdE09PY=; b=JWF08Rny9BemGarPrB0i/Nju57vPkVKPFShrlFasWKFWzRDbnEPy3xxt+MkVOGhXUg BVf2D5VIH0ez4aRUis8qQIdz8ngzjqyGgS9jgaHZqcmHHamddqsqs6q1vXQUmQUtA5z5 6WoY9wtUMbRiISiT3+ITe4fe8MrPSUj78Lxb3kN6S0S/aq/My8CKaYZhVwm6va8ijfs4 CtdifW/WG9C4MFlDfkDLn/cS5mml+qaRHOsN/PgDETBYCG+EvCWmXzCcysO1z8AhAKSM gBE0juZSmhuP5SCJO4W5RXirp9iCuQP568beAsm7IfPXHTX0ZYYMkXzQbYmG46c72qgo RPeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=x0JpPnSf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q19si18157719otr.193.2019.12.29.10.16.35; Sun, 29 Dec 2019 10:16:35 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=x0JpPnSf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732134AbfL2SQe (ORCPT <rfc822;christophe.lyon@linaro.org> + 27 others); Sun, 29 Dec 2019 13:16:34 -0500 Received: from mail.kernel.org ([198.145.29.99]:42580 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727683AbfL2RYL (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 29 Dec 2019 12:24:11 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4366420722; Sun, 29 Dec 2019 17:24:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1577640250; bh=p7mjhz8gd3jd+JBPn7f9tDNZ2ZJUC7aK1rTtuhAB4Qw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=x0JpPnSf7/sC+eM/+inzePcUJj2NaIYsD+sFZ9vl5IaVeAQKJcbnwRYn7WBNQmv+o ftyvW630UQ5DfYmbW+s1eTpC7uavPGmJZvZzjaQYZXJBsr5Uq04Y04dcF1yVsLe00K 7SrRkLU/tG040JCdH37dquB4a/23gV5hdz2trqNY= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, John Garry <john.garry@huawei.com>, Jens Axboe <axboe@kernel.dk>, Sasha Levin <sashal@kernel.org> Subject: [PATCH 4.14 078/161] libata: Ensure ata_port probe has completed before detach Date: Sun, 29 Dec 2019 18:18:46 +0100 Message-Id: <20191229162423.838150494@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191229162355.500086350@linuxfoundation.org> References: <20191229162355.500086350@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
Series |
None
|
expand
|
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index cbb162b683b6..08f67c109429 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c @@ -6676,6 +6676,9 @@ void ata_host_detach(struct ata_host *host) { int i; + /* Ensure ata_port probe has completed */ + async_synchronize_full(); + for (i = 0; i < host->n_ports; i++) ata_port_detach(host->ports[i]);