Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4881712pxu; Tue, 22 Dec 2020 03:14:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJwSEkA8x3iknd/m5gFUrC55M+yMIQKNsZvk9lMGReBQpoRUg6/GJsDMAiYPyOIODxeLemtX X-Received: by 2002:a17:906:b79a:: with SMTP id dt26mr18621666ejb.337.1608635686142; Tue, 22 Dec 2020 03:14:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608635686; cv=none; d=google.com; s=arc-20160816; b=AN64+1gttM13miX0HnPXaWJqI2AckZYjfByI1XQTnrroI46a0jzvG/wtUcHHhV8J5r xldUaaSib7ujhlcWMRX63kv+iI3TPDLBq+ZvFvgJYBAXHto4SyZejXFId+6p8CDkK8tP imICZugqJG0E2mF/1jfCekfkwEv01PIH5QZrWgkd78c7L54RvG5sr/TRLNGjWfVu9cbq nnHNk3AfxAnhBbfWnVFrC/2+MjfbW7xgyR6u4nmJXEFs9cw+xnHPiI7AJAqYWzKLMOMa F6a6/nbafEfjH8hxjpO4hpWXcAqr4g2HJOzORZfQ0ISy6hIFjO38zqwsLjccgy0tLnZi AUTg== 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=yvC3WUyh7A0J9bJxKs18QZ1SHG9Gsbdpa5dxd8QSVoc=; b=uFKtAt+TD3jfGtrgPehs6Ruh2GCBqGygeYo57jFkcNmcVvr7vWqEfT8a94ZatEHvCY S9XWyugCIAo4u379qBbToOElBXOzEbzys/7fPlCkOqDNp7mhukgOw7UjmOSQ7qm/TZcg 8Vf/Gx/6GHOQiBVpFEOZFx/iKPAn1SIlrpXkoCnzIi+uXRMODWqxlfpc4uNB1SDX2IPS Kx7/TQm554SO+bXTvc91r3mLGgmtO80zz4APNf2BRsEIJA8UA+yiMXZDcNQ1NRhjyY6i 3FS1JNXtc6+p9ToaBAo2N/THVFiAuZXLdO3n8nP17gO+a2Lhy8894+aM0C3Z3xfOVpcN WHtw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gs30si9047949ejc.200.2020.12.22.03.14.23; Tue, 22 Dec 2020 03:14:46 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726644AbgLVLM5 (ORCPT + 99 others); Tue, 22 Dec 2020 06:12:57 -0500 Received: from smtp.hosts.co.uk ([85.233.160.19]:44108 "EHLO smtp.hosts.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726095AbgLVLM5 (ORCPT ); Tue, 22 Dec 2020 06:12:57 -0500 Received: from host86-149-69-253.range86-149.btcentralplus.com ([86.149.69.253] helo=[192.168.1.65]) by smtp.hosts.co.uk with esmtpa (Exim) (envelope-from ) id 1krfaQ-000BhF-5h; Tue, 22 Dec 2020 11:12:14 +0000 Subject: Re: [RFC PATCH] badblocks: Improvement badblocks_set() for handling multiple ranges To: Coly Li , axboe@kernel.dk, dan.j.williams@intel.com, vishal.l.verma@intel.com Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-raid@vger.kernel.org, linux-nvdimm@lists.01.org References: <20201203171535.67715-1-colyli@suse.de> <3f4bf4c4-1f1f-b1a6-5d91-2dbe02f61e67@youngman.org.uk> From: antlists Message-ID: <3233b821-4674-b45a-cad4-4943401eff3d@youngman.org.uk> Date: Tue, 22 Dec 2020 11:12:14 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 20/12/2020 09:46, Coly Li wrote: > Currently blocks/badblocks.c is used by md raid and nvdimm code, and the > badblocks table is irrelevant to any of these two subsystems. Good to know. > > If there will be better code for similar or better functionality, it > should be cool. For me, if the reporting bug is fixed, no difference in > my view:-) > Hopefully that will improve the badblocks handling in md. Sounds like that could in part be the problems we've been seeing. If I integrate dm-integrity into md, badblocks should be mutually exclusive with it, but because dm-integrity is both a performance and disk-space hit, people might well not want to enable it. Cheers, Wol