Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1683549ybi; Wed, 17 Jul 2019 20:04:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqyXdrOm9oi3Nk/EdVprkp0nh9YVOEQhv5JC877ZEBTXWk6+9odjnJ/RAr1jh0GiRFTBjs00 X-Received: by 2002:a17:90b:94:: with SMTP id bb20mr49055657pjb.16.1563419080709; Wed, 17 Jul 2019 20:04:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563419080; cv=none; d=google.com; s=arc-20160816; b=I4KOxIlA4LjsMFiXKjKdUT4g6Nvxpsq1RnXrl3+HjO+GTDzg1MnqneVCvo8SXPEvVc fDWbXR4JcA1YjlNn7LkPHGlx5qYINkLwbOmSoLW8I6FDw+KAl6hDFRo5436HGUER1BZl GdT2JE2t02w1It9ke/dDxa3kC0rJEiHNTm+ckfOhBCiua+bbVExY3kfCoyhahigpZ2er NcSedXVdvYPav/S9WrF/ksh6FEupvIgu480gSw7B5zd9ik63PGuMHhZG2nTQoG+s+VBL JnPiD2xkzvNj8sMCC4AawdhF1KiyZovuMzQeRzIPmQm2CY2sMXb9K3Dzn/81npPSjv7Q tAdw== 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=iJz5dIZnUW0f0pkObwG/6NonVRiNg7DH+tlmNPVgyRE=; b=Hy1KhI/i0V9msUXU4FoQ7BiB2sx6IQ7WwuTd1DTjnvftyU70g1wW+dveEIJNvkuJ+M qyKkDaCql00mETY1QXz7helHqnsPLvE12Au4jlZBJyvz1NzPjjVenKYZOtS1CRjMgHMB u0gAkygdEpg/P7WltllFa+Z+VDiqeV/qKdicjkKw9WfArU5tCtlZ+3GvP1LIZqc7fDHe mr8QfiOuCNuXa+CLZ54Kso/qyVH9xrXcSniF5kMfge7jPl5PTHzXzFajI1Lzpr1tVZ9s d+2O/foIyY8VcUeeGtU6EMw3ainlf2OnITs6JVeBxKs9kuHHXe2RJ12U19dW9r3Kw0oq zmNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=YBf6j1Jd; 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: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r185si1144641pgr.506.2019.07.17.20.04.24; Wed, 17 Jul 2019 20:04:40 -0700 (PDT) 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=YBf6j1Jd; 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 S2389382AbfGRDDd (ORCPT + 99 others); Wed, 17 Jul 2019 23:03:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:34244 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389356AbfGRDDc (ORCPT ); Wed, 17 Jul 2019 23:03:32 -0400 Received: from localhost (115.42.148.210.bf.2iij.net [210.148.42.115]) (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 E3EA621849; Thu, 18 Jul 2019 03:03:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563419011; bh=rku9e+gLZXd0cXvofkio1Hv3SFZniVvGJAakdWxEiW0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YBf6j1Jd9BjeM5ArR6Dy8YGnLIeOgMju66PHtwOl2n0j4lguamAh+ey0xdqigJi8A l0xzfedEXwKvSP0B05Yrq2H2bFzZ/F6j23PBSkeyG/+sGKPRqQpTrOK3TpDge+8bc1 JO+FkjfXI/osxpdJQTcELBJGN1yp4/U0d3wSBu20= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Thomas Gleixner , Marc Zyngier Subject: [PATCH 5.2 08/21] genirq: Fix misleading synchronize_irq() documentation Date: Thu, 18 Jul 2019 12:01:26 +0900 Message-Id: <20190718030032.145247589@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190718030030.456918453@linuxfoundation.org> References: <20190718030030.456918453@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: X-Mailing-List: linux-kernel@vger.kernel.org From: Thomas Gleixner commit 1d21f2af8571c6a6a44e7c1911780614847b0253 upstream. The function might sleep, so it cannot be called from interrupt context. Not even with care. Signed-off-by: Thomas Gleixner Cc: Marc Zyngier Link: https://lkml.kernel.org/r/20190628111440.189241552@linutronix.de Signed-off-by: Greg Kroah-Hartman --- kernel/irq/manage.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/kernel/irq/manage.c +++ b/kernel/irq/manage.c @@ -96,7 +96,8 @@ EXPORT_SYMBOL(synchronize_hardirq); * to complete before returning. If you use this function while * holding a resource the IRQ handler may need you will deadlock. * - * This function may be called - with care - from IRQ context. + * Can only be called from preemptible code as it might sleep when + * an interrupt thread is associated to @irq. */ void synchronize_irq(unsigned int irq) {