Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp5033122imw; Tue, 19 Jul 2022 19:19:37 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s8ggITi5nLt5ysLj05LYM2bsx+C+p0S64FEcbjeWUP9LL95JUGKUDTYm5WEd9qcfWvYS6S X-Received: by 2002:a05:6a00:114c:b0:528:2c7a:630e with SMTP id b12-20020a056a00114c00b005282c7a630emr36631200pfm.86.1658283577261; Tue, 19 Jul 2022 19:19:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658283577; cv=none; d=google.com; s=arc-20160816; b=qTVyX6bERKsk/PfMnXKviO+wOOggSJd8LT0ckSA4pBTM5lNrYy+8axJIRx4xRO3U8u ttgjfcWupT/aYtgYZg7cHmoIYzsvzwNEobb3LCx2TrYxdhD5y/hzyGnwnVOEz7flIk+9 RF9rJc60RC96nkrJ5EQpzNTrM2ZmVGm/GIMWl+8F0yUKIp5IAEIPGY3JOSfHdlP7Q1zn qUZh9+VXS+gJ9UdVxnLnrC+Rhvnoj3MjzB9d2D1FRCQ4rBQeKvv4m/4fTWNBakqemUuD zBwx33bT9VYCjjdC4KqH2KhuZWadUYpUeI0UMi/AcbLOxIG+siT94YHz5R2CfTHckQB8 +B+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=BbbXjxBbmchC6lUqgUfXPC218Gy6DhHaQnWtllGW7aI=; b=ZgpvipTT1v0hnNfVLI3E1l8q+vetYiCiCFJ/Ji3nncOK5zVzhHbRTQGkoQC+FJxQ6f 4YW2e4F0RphEMOzdmk3wjPvkFpPe7Qipl7xsz2ml0IMxV9L5gL2pzCo31lTAbUJCMvWJ /oUXYPvTlTDpb2NnXAZMHUqRBUytkLyik7lJj7XI53Yn82d1FUhnX2YYUI1yLiODPJx0 bxqdfr/8q5mQOOmqjoBkQxrNKcFe+gaae0GMxSfMpZRQVeSHk2lNSyhhWiNuvHZA5cbB p7vuTU9EuEOVaBBdxVxE3Fru7XVORRtiNrt8AkoszRYMZMFg8DOsy1dDxcYvHyQZH0dF slVg== 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t11-20020a170902e1cb00b00153b2d164fbsi18117447pla.259.2022.07.19.19.19.23; Tue, 19 Jul 2022 19:19:37 -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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240781AbiGTBrI (ORCPT + 99 others); Tue, 19 Jul 2022 21:47:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232021AbiGTBrH (ORCPT ); Tue, 19 Jul 2022 21:47:07 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE6DC205CB; Tue, 19 Jul 2022 18:47:06 -0700 (PDT) Received: from canpemm500004.china.huawei.com (unknown [172.30.72.55]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4LndmV6GqWzkXB1; Wed, 20 Jul 2022 09:44:42 +0800 (CST) Received: from [10.174.179.14] (10.174.179.14) by canpemm500004.china.huawei.com (7.192.104.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Wed, 20 Jul 2022 09:47:04 +0800 Subject: Re: [PATCH] scsi: fix WARNING in scsi_alloc_sgtables To: Bart Van Assche , , CC: , , , , References: <20220719080026.1595874-1-yanaijie@huawei.com> <2f0cba61-b98a-9b14-6bb5-700f2b367e3b@acm.org> From: Jason Yan Message-ID: <88082ab3-0a2b-9175-eb7d-8472d3ff9430@huawei.com> Date: Wed, 20 Jul 2022 09:47:03 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <2f0cba61-b98a-9b14-6bb5-700f2b367e3b@acm.org> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.179.14] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To canpemm500004.china.huawei.com (7.192.104.92) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,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 2022/7/20 2:08, Bart Van Assche wrote: > On 7/19/22 01:00, Jason Yan wrote: >> When iovec_count is non-zero and dxfer_len is zero, the sg_io() just >> genarated a null bio, and finally caused a warning below. To fix it, >> skip generating a bio for this request if dxfer_len is zero. > > Since this patch is a bug fix, I think it needs a Fixes: tag. > Thanks Bart. I will dig it out and send v2. > Thanks, > > Bart. > .