Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp90106pxa; Tue, 4 Aug 2020 17:30:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx9WtRu4oEL8g+bXDUB/xr+VG115jox/XINKW/gCKMRftNLC+xWTn7dG0WkBmMqiNxHuO6m X-Received: by 2002:a17:906:e118:: with SMTP id gj24mr678713ejb.219.1596587416482; Tue, 04 Aug 2020 17:30:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596587416; cv=none; d=google.com; s=arc-20160816; b=YwHWps3xvFxVc7MxkAu5VSFB7kpGIQugM59tOnAhnRdUc5iw292Nu8cKpH7opvCpk8 puMkNYYG3hVDjB+npmUPKwvVuYL3zoI7yhMOIPv1W83f/t7FOAni+tIzvmDGBlUY505A 7DGLUR1vFQ8fSHd5QsI3yFYZGfJgZR/O7rEULOCuQNnA3AyUOJBWhApgtCPODA6SA7Bo sYHsWJA2VtmjRdpfBJAt72hboslXFe4X3nx7JvkxOInhoPCDC89Xfsg8QN9Z9ZA64BaH dxnhEuUSnIlo5Q3lEGoIZrQkmzoUk7IZLdeuEXSyUyNqItwyWnHRu6znwHcqjje1bX7n H5RA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:in-reply-to:date:references :message-id:organization:from:subject:cc:to:dkim-signature; bh=wDDhw4JoPLvk6HVCNBu8vh6YWhhbKaqSASVf9ZusHfo=; b=BbQ3rZsA02+mc8noFlacd4DKP2mnsI6Z2OttJyBWeUvW0bcy/t0/+wwtc0UdQCb7Jy B3yrKDoashAbCL2q5FRfvzVDPwH7c7aJRxcqLDTE39Oxdmrv/W+7NjA/scM3IJuS8PL/ PEmA4zJ7j1Fyb7SYT06cDoce84hU8qdyi4wsz0e7GTnlfEeBdY+IjydVNglAVcCw3brA GJp+mZS8FtyQHrrVHPzrC9/pwiZwqq+VN5LoWeWpflRSi8I5GGGFJtxSlGUsyAkGjRmt s7D29sDVgsiHGuEZLlqtPDLPVAWV4Jp4/D/vnbRphRjm/DzTCUw3+Q1gdUx4Xk4JTcig xQbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b="En/h5OWr"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l15si219692edr.130.2020.08.04.17.29.53; Tue, 04 Aug 2020 17:30:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b="En/h5OWr"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726511AbgHEA2v (ORCPT + 99 others); Tue, 4 Aug 2020 20:28:51 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:50794 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725864AbgHEA2u (ORCPT ); Tue, 4 Aug 2020 20:28:50 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 0750M03o127467; Wed, 5 Aug 2020 00:28:34 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=to : cc : subject : from : message-id : references : date : in-reply-to : mime-version : content-type; s=corp-2020-01-29; bh=wDDhw4JoPLvk6HVCNBu8vh6YWhhbKaqSASVf9ZusHfo=; b=En/h5OWrgjseryX0WtFrf1skAXSUZg0T4UCHBeQ0A9ZW6MBXaL7J/EHQP+Nq1hZw1cGn 0Z6v7KjEo9+QzecTn4xA7/73WupPWDSwGBUmMS3mn4AM1AaggyhA3+4Mdw8DF8p2byhi iOwWXyL0viu4LA4D7Boe0qVv90udg6CGIQa4/Uc0e6i4SdsaBW76euox1GgxTPZ4ccJR sKVPmK6ZMmoOFuV+uw9Ovfg8vWbtj9/sqH8nEa6jAHno81+8szl2TT1V2A/EPQBqidtk D8ZM4SVfGpZMx8Sulrf83bwyZNY6jjDiaZNkwV/3jqauQmspSFG4yaveeo+UqYWTJyci xg== Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by aserp2120.oracle.com with ESMTP id 32nc9ynvj7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 05 Aug 2020 00:28:34 +0000 Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 0750N8MJ132754; Wed, 5 Aug 2020 00:28:34 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserp3030.oracle.com with ESMTP id 32p5gt04g0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 05 Aug 2020 00:28:34 +0000 Received: from abhmp0009.oracle.com (abhmp0009.oracle.com [141.146.116.15]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 0750SV4X025572; Wed, 5 Aug 2020 00:28:31 GMT Received: from ca-mkp.ca.oracle.com (/10.159.214.123) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 04 Aug 2020 17:28:31 -0700 To: Ming Lei Cc: Coly Li , linux-block@vger.kernel.org, linux-bcache@vger.kernel.org, linux-kernel@vger.kernel.org, Hannes Reinecke , Xiao Ni , Bart Van Assche , Christoph Hellwig , Enzo Matsumiya , Jens Axboe , Evan Green Subject: Re: [PATCH] block: tolerate 0 byte discard_granularity in __blkdev_issue_discard() From: "Martin K. Petersen" Organization: Oracle Corporation Message-ID: References: <20200804142332.29961-1-colyli@suse.de> <20200804235811.GA1981569@T590> Date: Tue, 04 Aug 2020 20:28:28 -0400 In-Reply-To: <20200804235811.GA1981569@T590> (Ming Lei's message of "Wed, 5 Aug 2020 07:58:11 +0800") MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9703 signatures=668679 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 mlxscore=0 bulkscore=0 phishscore=0 spamscore=0 adultscore=0 suspectscore=1 mlxlogscore=808 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2008050001 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9703 signatures=668679 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 mlxscore=0 suspectscore=1 phishscore=0 lowpriorityscore=0 spamscore=0 impostorscore=0 adultscore=0 clxscore=1011 malwarescore=0 bulkscore=0 mlxlogscore=836 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2008050001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ming, > What we need to fix is loop driver, if it claims to support discard, > q->limits.discard_granularity has to be one valid value. Yep! -- Martin K. Petersen Oracle Linux Engineering