Message ID | 20191229162524.815972605@linuxfoundation.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:815a:0:0:0:0:0 with SMTP id e87csp5455407ild; Sun, 29 Dec 2019 09:40:27 -0800 (PST) X-Google-Smtp-Source: APXvYqxfMkFpYbmYBHubiuhYQzHyrN0tjQfKpov+o0RI2Eh4KCmlZOQpjAj3dwpSuOjMO4jNmVm0 X-Received: by 2002:a05:6830:14d9:: with SMTP id t25mr61085886otq.258.1577641226909; Sun, 29 Dec 2019 09:40:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577641226; cv=none; d=google.com; s=arc-20160816; b=gxefY6JE4qlVUxqnuOiRjOTk1VJlqLQyTr2XUxJ3sw2rekdCj+k1JzARHFhQRwrSqa dZRKfRexuEZ/GA7J0HmAZcXzDs6Z6p+eaua7Kx7TOA1pZDciCHUJcoYSh0zP3HgmFXag 5aKX3IZeOJsSL0noThG5e44kx/lnI7Ev5xyYbVSD7swZf+J3M4LBvsc8LqT4vu0+BkoE Oc/kszBhfTCIeuLcDbaQI7+t4Xl6paf/TSNGqqMP0VrB4vdXDJlaj/FavTOcoqi8Sh9v 8avqwkA9QV7DseTceBczKvmqaBG1IRKTanhsBKqvRLh35KpcYL0lW8NPpIVqZ/NMwCxt WrfA== 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=GC4QxHo0zp0FZ4Iwi3YhMZiLrIu3iSPg4jDW4NCRlp0=; b=C36Ke3Pvi733DVzbdUycIlK/U8Ftultua+/1X9EAnigHMgcBrI7Hlt63apKS+RZ5ut ibvWsh+oQPL9H1c79tRzPiB4mazKCvedzW807iuKgL2cOeniX/m339bso4raeoad1CL7 N5Iq93v7PqUqSxhlacBVxcs4E0azOZ70osquPOQQZg0O94skdqdlicDBKaCbZ5bVNO0h xxdldJcvPzpeU51NZsxohaPP9GwKuC53P0jKw4U3dfezUfbpG95RewBCM2JEJq7FTOT1 +lwioi/7UIoLNLbqnaSE1Jbc51tZ1zOALEXtjqQBnyybGQvMpxnYLJ5KHdT74D0BXmV7 kcJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=JEtbS8D7; 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 z25si23149633oto.211.2019.12.29.09.40.26; Sun, 29 Dec 2019 09:40:26 -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=JEtbS8D7; 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 S1730130AbfL2RkZ (ORCPT <rfc822;christophe.lyon@linaro.org> + 27 others); Sun, 29 Dec 2019 12:40:25 -0500 Received: from mail.kernel.org ([198.145.29.99]:59670 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728952AbfL2Rbw (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 29 Dec 2019 12:31:52 -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 030A021D7E; Sun, 29 Dec 2019 17:31:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1577640711; bh=wHSuNbaQOr9d0JXrs1QbazHeHnvK/wg9JvQeH+r/jCM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JEtbS8D7mT+HoWkAKdvUG1Fh47Wpt94o7G2pIb16oZmiugtV+QxObZPJzFQmT7PAP xucA6oM9ivjBxh+eF5YiETW85x6gGIC94BpsfvHjAVEJyurAS4quyAWwITWl2m+T/1 iY686V9YLOHoczYPyVpnG7qoDNKhxPvTOFh7XwZs= 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.19 107/219] libata: Ensure ata_port probe has completed before detach Date: Sun, 29 Dec 2019 18:18:29 +0100 Message-Id: <20191229162524.815972605@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191229162508.458551679@linuxfoundation.org> References: <20191229162508.458551679@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 133fed8e4a8b..85ee6c35d8e0 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c @@ -6726,6 +6726,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]);