Received: by 10.213.65.68 with SMTP id h4csp81683imn; Fri, 30 Mar 2018 14:50:02 -0700 (PDT) X-Google-Smtp-Source: AIpwx49jFeiKmCg1jXnBQshxxrV9Ol3sF3XEqn3BfLEQeWvbSxXN/t0mYIBIpjWyLo3L5aj5kSMz X-Received: by 10.99.134.193 with SMTP id x184mr422078pgd.324.1522446602711; Fri, 30 Mar 2018 14:50:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522446602; cv=none; d=google.com; s=arc-20160816; b=E2Nys9TMdBOrvINqqlvRBFNMfmuRymtjgLN2gt4JVL8oKwZZW9v9TL8X4U/Mgaa6J+ 1knHWBzT58fxONHhmYsB0GQrQQRf2oMiaIHETBLohU6A0GPBPSccdrN9UBpyJRVQJvmu k7QWJsMt3IBKrFweXsl0hlNXTASu2L0Xlku7T0gdZx2XDJILC9CHnptDm91ho9Vsgrsp KBYD8ErgPtNYPcliESohHmsQ5WztODFd4FFN+pnXo68okZLdUuqJKTdj1ZrIBmDhJvTy hoL8xfuUbigXAdZc3cEyDh+qWr+BLKXednzu18j/BUdzQqxZbMzkoZJlSpVP4ZB4omyF h0NQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :from:references:cc:to:subject:arc-authentication-results; bh=VzgAn1mZkv8IjwtKDDa1cpiMSpqurkLFg9dmijbpJ50=; b=eP1JGSBhiATCLk4kcQi3neNcsiXEjSXGJf1X0lAHzg5sKsyxYzT00dfbDnC4TD1rA2 uq2QhUgmGp7lT/ffadsvxA6fyr3nlsdNaRWmBAoMNAzU47vCefTPuyGwZj6CM2djVnZp PY7LmAlGsMSEUTs1LEqkp+dbEpT1+1qVY+eXUo2L+9fo6kjh047ukHnHBZEP+sGgnap/ rg07H71LFi1ohPk6A5Eed+r/vzr52UVHMOfet71SHfdxyDoweYhCGZmZyxJNhxpdnohU kFYrqCF+Nozprh0kdv5L1XYeAvOftk8iu85ezDRPxpeZDplNRLMcSFlG3JLpMwdWPFCY 6IIg== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i1si6284904pgp.542.2018.03.30.14.49.48; Fri, 30 Mar 2018 14:50:02 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752572AbeC3Vs1 (ORCPT + 99 others); Fri, 30 Mar 2018 17:48:27 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:47564 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752249AbeC3Vs0 (ORCPT ); Fri, 30 Mar 2018 17:48:26 -0400 Received: from pps.filterd (m0098414.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w2ULhuab007461 for ; Fri, 30 Mar 2018 17:48:26 -0400 Received: from e37.co.us.ibm.com (e37.co.us.ibm.com [32.97.110.158]) by mx0b-001b2d01.pphosted.com with ESMTP id 2h1w8kgaa1-1 (version=TLSv1.2 cipher=AES256-SHA256 bits=256 verify=NOT) for ; Fri, 30 Mar 2018 17:48:25 -0400 Received: from localhost by e37.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 30 Mar 2018 15:48:25 -0600 Received: from b03cxnp08026.gho.boulder.ibm.com (9.17.130.18) by e37.co.us.ibm.com (192.168.1.137) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Fri, 30 Mar 2018 15:48:21 -0600 Received: from b03ledav006.gho.boulder.ibm.com (b03ledav006.gho.boulder.ibm.com [9.17.130.237]) by b03cxnp08026.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w2ULmLLK11207040; Fri, 30 Mar 2018 14:48:21 -0700 Received: from b03ledav006.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 38DB8C6042; Fri, 30 Mar 2018 15:48:21 -0600 (MDT) Received: from rosattig.br.ibm.com (unknown [9.85.133.2]) by b03ledav006.gho.boulder.ibm.com (Postfix) with ESMTP id B4BE3C6037; Fri, 30 Mar 2018 15:48:19 -0600 (MDT) Subject: Re: [PATCH] nvmet: fix nvmet_execute_write_zeroes function To: Keith Busch Cc: linux-kernel@vger.kernel.org, hch@lst.de, linux-nvme@lists.infradead.org, sagi@grimberg.me References: <1522444730-2060-1-git-send-email-rosattig@linux.vnet.ibm.com> <20180330212439.GA28945@localhost.localdomain> From: =?UTF-8?Q?Rodrigo_Rosatti_Galv=c3=a3o?= Date: Fri, 30 Mar 2018 18:48:18 -0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180330212439.GA28945@localhost.localdomain> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-TM-AS-GCONF: 00 x-cbid: 18033021-0024-0000-0000-00001827EB1C X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00008773; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000255; SDB=6.01010764; UDB=6.00515014; IPR=6.00790042; MB=3.00020337; MTD=3.00000008; XFM=3.00000015; UTC=2018-03-30 21:48:24 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18033021-0025-0000-0000-00004F518AE1 Message-Id: <93622938-f532-b8ac-2bca-fe40ed759e71@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-03-30_08:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1803300218 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Doesn't that mean your host is using this command wrong? The NLB is a > 0's based value, we're supposed to +1 to get the correct block count. Keith, I tested passing different values to the c (number of blocks) and s (64-bit LBA of first block to access) parameters, and it was failing. When I removed the +1, the command worked fine. I used a simple script to validate this: for s in {0..20}     do             for c in {0..20}             do                     nvme write-zeroes /dev/nvme0 -n 10 -s $s -c $c             done     done Is there some other way to test it? -- Rodrigo R. Galvão Intern - Linux Technology Center - IBM