Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp543163rwl; Wed, 12 Apr 2023 00:02:15 -0700 (PDT) X-Google-Smtp-Source: AKy350YHvNp8kV9+cdTvhoCdZq2tCYlNoqgCvcQmOyU6iJgeturowVXmCEJhCl51GIhQA4YaeutU X-Received: by 2002:a05:6a20:3baa:b0:eb:c9b8:94eb with SMTP id b42-20020a056a203baa00b000ebc9b894ebmr530728pzh.52.1681282934780; Wed, 12 Apr 2023 00:02:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681282934; cv=none; d=google.com; s=arc-20160816; b=X6F2zDrQ9s9RnQdi0iNHnGtbJ6CihdKGrckHtNpbHLvxkbGOG1LNIh4xtKVx+Gf2S2 ircgzqolHfkwYunDTWIRQxYOR6cOBLQvW5ameAuTbyeJ/m7UPABkwgkxsY8OwSivvv5J alsR0eY3Lo1lRSGspIKoxx311jkisulPkNQ7TyFaGKzAVaF910oWxmtGmx1XMrX/DjU2 8voGKF/IFGYWc+fSzgxlnmyuJiyJ32hp9hfXz2Dkb9kFTam+5PcrzUZVrav5X4zyvZCW ltpIOullBMw/gtMyv6/9WIG9xogTKk9cYIoT//Pf6px/fkyhIs2w9tNKkNTYO5yxFHVh 8rzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=IXgErTOU6MWjh0/bsDBJzPq3vIN+6PWS6ZsIFLUCqPY=; b=dPEOHI1ug0UmerrIsoLaQ2ytxubyIWQJjtq3cZ47bqGza0Ydod7fmGToK60C1cRCDq mbDC8G0A1OVUL6OaBUGpQnCc4RHjhHMZxfgAKhoOrM9SuoOTBT79EzJ/iBRK/OtEXvHy QVIkoF7tenOrATr/2Ml0y/x/8W3OHoC5F3+NIxzY1KLtcogz67U6QwNCdDxKXmwThQIP 38+joHn74ftTuuSc+FnNoL0XJJxnOruqzkLHHrqTwga+4AEAurKhKB5D8i1NNHp7tGce SpaOP010zmfVuLhzz1qplWHMcDMJKpQoez2FlTXEyHILxCZWc+TS57w5ivN5YW1h1ebI SPhQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l71-20020a63914a000000b00519d69a2335si7023702pge.353.2023.04.12.00.02.03; Wed, 12 Apr 2023 00:02:14 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229670AbjDLGxM (ORCPT + 99 others); Wed, 12 Apr 2023 02:53:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229484AbjDLGxL (ORCPT ); Wed, 12 Apr 2023 02:53:11 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 359D62D49 for ; Tue, 11 Apr 2023 23:53:11 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id C97D168AA6; Wed, 12 Apr 2023 08:53:07 +0200 (CEST) Date: Wed, 12 Apr 2023 08:53:07 +0200 From: "hch@lst.de" To: Jinyoung CHOI Cc: "kbusch@kernel.org" , "axboe@fb.com" , "hch@lst.de" , "sagi@grimberg.me" , "chaitanya.kulkarni@wdc.com" , "linux-nvme@lists.infradead.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 1/2] blk-integrity: add rq_integrity_payload_size helper Message-ID: <20230412065307.GA20550@lst.de> References: <20230412052133epcms2p4d52e78b4fc1bc6ac1cc9d399a0378fce@epcms2p4> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230412052133epcms2p4d52e78b4fc1bc6ac1cc9d399a0378fce@epcms2p4> User-Agent: Mutt/1.5.17 (2007-11-01) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE 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 > + if (WARN_ON_ONCE(queue_max_integrity_segments(rq->q) > 1)) > + return 0; This should work for multiple segments as well.