Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp1583135rwb; Sun, 15 Jan 2023 00:22:57 -0800 (PST) X-Google-Smtp-Source: AMrXdXv/LWYggUnpMUwjhArSnSbBqoTWR17dwws7ZjC09a6K7zOXAtpn4nBNX+YWETQmPs8tmfx6 X-Received: by 2002:a17:903:50e:b0:189:bda4:4a39 with SMTP id jn14-20020a170903050e00b00189bda44a39mr83942215plb.49.1673770977390; Sun, 15 Jan 2023 00:22:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673770977; cv=none; d=google.com; s=arc-20160816; b=GyhPMMoIATVG4Lj3YaF6H5I+c8Cac2+681qEH2gO4K/eEcoe5ggRBHZNJ6KcLjLWC+ Dd+XfU67oARaixKEhcMO/EMlyvKWDorT9rIjN6ACfpyxHeNUGtskWKWMWOB89s76X/0B c0+u+TWNQiStkaZAHCnJc7Pn9s/CWlCtgKhMnJf7ttP8oh+3zXP8LABDJmOifLNpjxaQ +ixvAN2xwHX/8LMxqcn324c59r+R+C3Q0H/x0BDjG80X1sr1l9/lZWPPC8lJym/B600T uoWFiI2CNOTDf2RisEeCNHUtdVzRDFD1GDfEfFMCZGDISQ7NNNKMtS6Es3pwI/O8ycPK h0tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=f++gWUxa0RB3PO26ObIEwjBZpsaZn/+q0FSl3WYudXA=; b=b1+ibSBClZS3+2yXsKN4M9PoQDB1x2rblBOOsPeAF3zQOX/mxCar0361f3t+rpDUqh atCM0b/PyAUhj2dASPtpPoHaOLj1r5ZZ8vUjh+OsKc2powH97NPLHLwsuIxSZxe1FdHw VvvnJucPE5fZAA9NDWyIiYEH6u4kma/m7BcTobj42c5bXcURbS2Ms1cumAgfmSCBVFF7 rwnpiVb105imnGIJFRnG0RxBWS1o2Xe43Mzt8SgBZe+hSjZ31fE6AD423J09dgsRt6J7 aHzVGfsHoR691yr4d6E6BKRhlY9tGKq0XBqUZo3Y7DdGvAdquJQ7xiPb1TNdE5QmOSoE XMJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="TOVodW3/"; 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 a7-20020a63d207000000b00462a6f64703si26714029pgg.376.2023.01.15.00.22.47; Sun, 15 Jan 2023 00:22:57 -0800 (PST) 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="TOVodW3/"; 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 S229719AbjAOIEn (ORCPT + 54 others); Sun, 15 Jan 2023 03:04:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229890AbjAOIEl (ORCPT ); Sun, 15 Jan 2023 03:04:41 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E8FDB47B; Sun, 15 Jan 2023 00:04:40 -0800 (PST) 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 dfw.source.kernel.org (Postfix) with ESMTPS id 2825160C53; Sun, 15 Jan 2023 08:04:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0C804C433D2; Sun, 15 Jan 2023 08:04:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1673769879; bh=qm7hyC0LUcDgDBxuDWXDhly2lFnkKUN2YKEnH4CRa8Q=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TOVodW3/W+kLvSDGrLFSUb3XjtmMs7WVRscM0i0DMoDYKTRmx82lcFEcwEDOd94rH HZ+4kJFALknAhdiBPzTip+vPj0+ohAWgdB+LR3/N63yRzHrqT/QI5NSPCpS0I5IjL2 wGz4G/2X1r3lutsGlX6uiDH891qeUF3wP9s9KnT4= Date: Sun, 15 Jan 2023 09:04:36 +0100 From: Greg Kroah-Hartman To: Fedor Pchelkin Cc: stable@vger.kernel.org, Jens Axboe , Christoph Hellwig , Chaitanya Kulkarni , Johannes Thumshirn , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Alexey Khoroshilov , lvc-project@linuxtesting.org Subject: Re: [PATCH 5.10 1/1] block: fix and cleanup bio_check_ro Message-ID: References: <20230114222709.180795-1-pchelkin@ispras.ru> <20230114222709.180795-2-pchelkin@ispras.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230114222709.180795-2-pchelkin@ispras.ru> X-Spam-Status: No, score=-7.1 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 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 On Sun, Jan 15, 2023 at 01:27:09AM +0300, Fedor Pchelkin wrote: > From: Christoph Hellwig > > commit 57e95e4670d1126c103305bcf34a9442f49f6d6a upstream. > > Don't use a WARN_ONCE when printing a potentially user triggered > condition. > > Signed-off-by: Christoph Hellwig > Reviewed-by: Chaitanya Kulkarni > Reviewed-by: Johannes Thumshirn > Link: https://lore.kernel.org/r/20220304180105.409765-2-hch@lst.de > Signed-off-by: Jens Axboe > Signed-off-by: Fedor Pchelkin > --- > block/blk-core.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/block/blk-core.c b/block/blk-core.c > index 26664f2a139e..921d436fa3c6 100644 > --- a/block/blk-core.c > +++ b/block/blk-core.c > @@ -701,8 +701,7 @@ static inline bool bio_check_ro(struct bio *bio, struct hd_struct *part) > if (op_is_flush(bio->bi_opf) && !bio_sectors(bio)) > return false; > > - WARN_ONCE(1, > - "Trying to write to read-only block-device %s (partno %d)\n", > + pr_warn("Trying to write to read-only block-device %s (partno %d)\n", > bio_devname(bio, b), part->partno); > /* Older lvm-tools actually trigger this */ > return false; > -- > 2.34.1 > Again, we CAN NOT take patches for older kernels and not for newer ones, that one will cause regressions when people upgrade to newer kernels. So I'm dropping all of your patches from my queue, please resend them so that all trees are properly covered. As-is, I can not take the, and most importantly, you do not want me to accept such a thing! thanks, greg k-h