Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3042922pxp; Mon, 14 Mar 2022 09:40:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxol40pxy4Ghz42BmvKY6vndLZiHJin5t3AKJZdHffPpAsmfJdlqWXwx7H1pdsWKkpxoUk1 X-Received: by 2002:a05:6a00:24cd:b0:4f7:2340:a6cf with SMTP id d13-20020a056a0024cd00b004f72340a6cfmr24520824pfv.36.1647276018359; Mon, 14 Mar 2022 09:40:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647276018; cv=none; d=google.com; s=arc-20160816; b=mjQg+11Qm8l70s34mOiBUCve1klCbw/voi4UdejA4ntITM7lc0Q1jrocsQLUABq2rC uwuQh2aO6u9gIs9i4CLc6peswMCbPlswCBs3d14NF83H5+c90/Jm5INJz5OxkhcTS0ft N5/09lCk5ZipRUlMHcucIMCl/8TfMC5WUz2JGbvebbCuv4F1Pqe1bAB6AlVncp1Kipr4 SLaj/95bv/xLr2+DHa+7c8zI38Cjzat5cI4jgfSAW7Dx6j164ll9S4evqNahDNZe/8En jx9Xn7eg3m/3S8S+UktCV+JcBxEPkYOeDZkaRe81D2tcM3K9BHyaGEnz+x2skmJN9LFJ Kkxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=C9mleIsVSmq6DZHAEnKTMKU1dm/m+QKjVN5t4gtYKEk=; b=boVxjDoO22zmdgpMo2mhpYq6eBaEj+ylplGSjDPwuFh6vopjxCHEoyTPaCMQVqU5Se 3dw4s88bzajNe8dCfI8hpdXvGVpiozeQNPCPbBOqqJ3QaSQv7k0DNm5KxobWeKQ8hxh1 k+sS2d8dlHV41TUrxEo4Ons45IWsbXyQv0z7SIeaoOWK4fP9Qf+e1h4dJUSPeHoCclHP iU8XYmiuJKvMrOYuj8XVKfOQNek0bGTzvcCc4+2fF0UlzaDm1tK7kaWvWgOa0IfS5qs5 JbiDwzrdtqZr1ZOdx0iqfNQt9risRS423pK7n1GbGUw4BhGh59TyWxkEDO52kGtTfJXN Pm/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=lYJg1yQ1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z131-20020a627e89000000b004f6e1e26811si15382023pfc.223.2022.03.14.09.40.05; Mon, 14 Mar 2022 09:40:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=lYJg1yQ1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245646AbiCNMd2 (ORCPT + 99 others); Mon, 14 Mar 2022 08:33:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243952AbiCNMVZ (ORCPT ); Mon, 14 Mar 2022 08:21:25 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B12713D41; Mon, 14 Mar 2022 05:19:31 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id AF9FAB80DF5; Mon, 14 Mar 2022 12:19:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E5D24C340EC; Mon, 14 Mar 2022 12:19:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1647260368; bh=biVQO26JNhnpkhW6bbPtwyeL1122P5bPQiLIBuM1CHQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lYJg1yQ1+5/QRk73AL70nIGbzbF0ByrdVIFwoHjcxEp4s/KG3wJwbD1JbKaxdHtBI zHnTALWDCCEqeUmEiKEwam6xLEMSAa+ML7XpTeKTJMpOSIWvX8bP6q/aEbK0AiH0VQ U+EbyCAPbvmryB6hp7MuFobPcU9BIUkcCD3DrWZ4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jann Horn , David Howells , Linus Torvalds Subject: [PATCH 5.16 112/121] watch_queue: Make comment about setting ->defunct more accurate Date: Mon, 14 Mar 2022 12:54:55 +0100 Message-Id: <20220314112747.234658959@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220314112744.120491875@linuxfoundation.org> References: <20220314112744.120491875@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-8.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: David Howells commit 4edc0760412b0c4ecefc7e02cb855b310b122825 upstream. watch_queue_clear() has a comment stating that setting ->defunct to true preventing new additions as well as preventing notifications. Whilst the latter is true, the first bit is superfluous since at the time this function is called, the pipe cannot be accessed to add new event sources. Remove the "new additions" bit from the comment. Fixes: c73be61cede5 ("pipe: Add general notification queue support") Reported-by: Jann Horn Signed-off-by: David Howells Signed-off-by: Linus Torvalds Signed-off-by: Greg Kroah-Hartman --- kernel/watch_queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/kernel/watch_queue.c +++ b/kernel/watch_queue.c @@ -569,7 +569,7 @@ void watch_queue_clear(struct watch_queu rcu_read_lock(); spin_lock_bh(&wqueue->lock); - /* Prevent new additions and prevent notifications from happening */ + /* Prevent new notifications from being stored. */ wqueue->defunct = true; while (!hlist_empty(&wqueue->watches)) {