Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1703384ybi; Wed, 17 Jul 2019 20:25:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqxpETaBML87hYciccNztJpZGXkMKehjH+iPKDBXHS3mNkp1uQWOJ8r+anGiTGnQO6Dox2HA X-Received: by 2002:a63:db45:: with SMTP id x5mr33190752pgi.293.1563420348599; Wed, 17 Jul 2019 20:25:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563420348; cv=none; d=google.com; s=arc-20160816; b=sJIdrB6uUQ0L4ctVED1S1tL+s9ZUhckQWvFMyiVPE/uNLVQ4yoA2dtaD3UaE5mDJSa xi+qcpZflP1iNu7J5pL1vvVL45eoSC0YP2DeifoRrdcZcQ4LTxEbCAfSswHH+9ZaUOPN Wy1MsliFxWvfqet3tHANTAV5SbNa/Nfv6fVG1nBZxPpmAUA5slOaqCvozGCIRUC3p0hs u0m6ogSPrT7K4mtGzyNCdK5N2yf8arUkIiGtPykwe/T8CiE7D1mwEWalz9JUK628XAu2 TRy3MNh5bzROyMXs7Crgf+KAuLJnWM2vQpyxqUegYcmXG7WQ++M9sS0GvaOxhFSYiYC1 2xxg== 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=Tqnp8H1nxM3FHxAxf+/cqMCMu9Ni9n9UC25+TT/EkjM=; b=al/NRbo41UnN9fx9TrLWVneBKYuo3gss1nEwx8xV9N85OUcxaL+eMWp+r3D/XDMahC UVUSIZrDNhLKm61+51gmqDvFBee8A479uoVs7jwRxPi5YjOqcfi6uOFP1tSWhUIFuYcw wQCm3v+haPqbnBU7L33tq27UQv/AJCz9fGanerxKAT+C+ubM3jWserXCj23nbWqWqdKH eIFzI4+84waOi/gBKhZF5LCzZjkegO7I1oHBsfxxf7SSE3GOM8BklK9NoQjb/nk9fRF4 LBSawqx9PuxN87hs0NL4Jtdz+Wr7gluzwT8yj4vv8ikFkamVg2Q1UTkPitQ8TlQhaTKr 2pGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="Is/xcaxX"; 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 l102si507893pje.78.2019.07.17.20.25.32; Wed, 17 Jul 2019 20:25:48 -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="Is/xcaxX"; 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 S2390672AbfGRDIQ (ORCPT + 99 others); Wed, 17 Jul 2019 23:08:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:40108 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390648AbfGRDIO (ORCPT ); Wed, 17 Jul 2019 23:08:14 -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 A71232077C; Thu, 18 Jul 2019 03:08:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563419293; bh=Yqt/LllpGzMStVbT4HLxLYhzgZMPXuawn64z9mAi6yM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Is/xcaxX6+84JRZSoA8mlNo7dR7sEImaBdESTPdulxOjm9COBF1+DwvfYRb0iz5Fn poz8ah2on+D9DskZJPSJKkgC0987vKGoAEjog/AUK1C142YUuIX9stxLXYWvH+tfXx 79u5suhh9GcJnOyVucJyK3jFtnO/O6j/pDjFaK3I= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Thomas Gleixner , Marc Zyngier Subject: [PATCH 4.19 31/47] genirq: Fix misleading synchronize_irq() documentation Date: Thu, 18 Jul 2019 12:01:45 +0900 Message-Id: <20190718030051.369338137@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190718030045.780672747@linuxfoundation.org> References: <20190718030045.780672747@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 tglx@linutronix.de 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) {