Message ID | 20191229172715.977210635@linuxfoundation.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:815a:0:0:0:0:0 with SMTP id e87csp5462843ild; Sun, 29 Dec 2019 09:49:57 -0800 (PST) X-Google-Smtp-Source: APXvYqwjp9PpfJtOxxGAUpMlx6XeiVuw3x8mtcBniGt+rEYyixuNjHdN6Sb6E2JuFFzDWjWt1j0R X-Received: by 2002:a9d:4d8d:: with SMTP id u13mr67398366otk.299.1577641797239; Sun, 29 Dec 2019 09:49:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577641797; cv=none; d=google.com; s=arc-20160816; b=J64R1dMvYlChJeaUUn8+9nwghKkEehOU0e9zEz6qTYPAfp4EkPlvCJzyM91BDMpUFF zGU8saMiTz7kc927JFcHnJQRXLiSFDBtHSx+SEK7lqiUP/jjTSuKXnCI8eFoiMlcnrh8 63Rw245JAyI6aFioIiMup0mhygUnm8mA/nSHAFCk2pdtEy7CNiwZqIAxDt9Gycfnr4gq IJ52g7Ub1Om5n8n0RUjhbjLKA9q58PKUsSMfNVAz1jQQytlGyLyKBsue2gwPLKaSt4Gu u4tNXPWWZxo5o2c7vMdquhh22kUU9mH+XouRkKlLkMl4se72EYUxrjcE9Faws4wQZ7VH 9z1g== 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=W/FD4QHyrj08EY+3jJpJO/OyNmHVm39PxpB0zUb1m1Q=; b=YwIkFa9Xref24vh/SIGG5HSRBCz9lNfGCkDOKE1B3TbNLi5b/lk7ojj8gWcPV4eztK G7CfbHuxe/gbsY+Xs2jPT9jvpaql8ebEy543YpcscO6Xe5wdDJoi5T0aX5PF7YiYP8yx 0pJxDtcZgZfa/A0DdRjI9rzw9lVPllih3Rz2JqlT16iqC/u0vZOQ8tKg+y2nXZpVqjgE 0u9liyXEEU36ELb44cFQsFrUT106GqOHRJUEMAuqP5Wz7ZmC4gJAQHgbcS8DBGWTQkK6 oSyJHgSFM9/eL3N4zMWKd//h3jkR8hEmROtpO1jTjKdQ3NtrujXA74b9AYEcxPMXnh5M HV5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=J6mKdtNS; 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 x137si19515183oif.42.2019.12.29.09.49.57; Sun, 29 Dec 2019 09:49:57 -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=J6mKdtNS; 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 S1731777AbfL2Rtz (ORCPT <rfc822;christophe.lyon@linaro.org> + 27 others); Sun, 29 Dec 2019 12:49:55 -0500 Received: from mail.kernel.org ([198.145.29.99]:33900 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731761AbfL2Rtx (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 29 Dec 2019 12:49:53 -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 D263320718; Sun, 29 Dec 2019 17:49:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1577641792; bh=cvAEJuiJThNbmw/zdeNsOBj3VDFRwX3r00EqoPreu/U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=J6mKdtNSfXItyyIsVjbVvjsWnYN8t43LzhSJz+0OTGt2K5HB8hANUU0N1B+v+KSEO gUdY1dfZQFuFS8rEXHPafU7+T64TTLYW/ebF0eO2Fgvn34ySL9EXvcmR9lUYev1PxL 5tKpPP0TWuKShosTsu/VvSZQTV5JLD4t5VOVRMN4= 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 5.4 213/434] libata: Ensure ata_port probe has completed before detach Date: Sun, 29 Dec 2019 18:24:26 +0100 Message-Id: <20191229172715.977210635@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191229172702.393141737@linuxfoundation.org> References: <20191229172702.393141737@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 28c492be0a57..74c9b3032d46 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c @@ -6708,6 +6708,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]);