Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3692472imm; Tue, 17 Jul 2018 08:47:51 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeXq6bMro542TYwsKpkIDnZYm3ScO3LVMMiRwUMt0NBOkLRyst1gmjuTBqD+y35XVUAV1ng X-Received: by 2002:a63:5055:: with SMTP id q21-v6mr1998448pgl.397.1531842471470; Tue, 17 Jul 2018 08:47:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531842471; cv=none; d=google.com; s=arc-20160816; b=YSXx+cWGr+MeaXKojsCX4vWSortUJMkZo7nMjTk0QuYFMnspyCymkSAbskfj+Jy2Wi Db5E3VyU66qwa4Z66i0BVmSuMBMcyIFtG9zturwjA0Nt0ERMA6KLfkokGP20coIJ/6P1 T+ZwUwRhe0b7cSfhypznbpTt6ovcmFS3ftpCsBfIwYEFZgQ6Rnh4xa9VxPXFyQjeMC5l CfCJxAvdWInza4YxkOJWa+zVSr7rJu+zyYRFmEK20+NE8x63Ui4RMFU3fcOBAY4wVybk l6W61Titny94leQLXJ9DjaaTlztPkOC9051OEJhO6mWpSIxtrn9Hlxddfn9PH7aGFRLw JxMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:date:cc:to:from:subject :message-id:arc-authentication-results; bh=QClPhMEE8P9ShMBw9wZj31/X6QXNQGqhpNHlyLO3DWw=; b=Y6J0IDRV30NucjxrRFUwlgfSi1gi7d6mnHXM/h9yGjDQ0o1V2z3YIbGROevOW0MzCI +SG4WDX9TAATWVc23JqQU/SCK8lhTTLotqAVldgpBe8nCgbJMB/v20o8U9MiWQcze32F LMtjtV3N/E9RZWtPwGLCIcmpTURN3HWU7JvmBzNAft2GhOZq8V056Kzp1/xeas7FBO02 4JeJ0qLisG6slFMKsyV5T2l01CMR7sCCRA6uqbmK9fXpxfliD96+TbA5yKjOdX2AGVeZ VFhhSyy3DgxoEaPfUWjSwixUOldwY2Cr33xlNsHjv+pgLqAzGb75SiyCspG1RNf01BKL ldNA== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 33-v6si1053459ply.344.2018.07.17.08.47.36; Tue, 17 Jul 2018 08:47:51 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730567AbeGQQUN (ORCPT + 99 others); Tue, 17 Jul 2018 12:20:13 -0400 Received: from mga06.intel.com ([134.134.136.31]:22965 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730128AbeGQQUN (ORCPT ); Tue, 17 Jul 2018 12:20:13 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Jul 2018 08:46:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,366,1526367600"; d="scan'208";a="67640899" Received: from smile.fi.intel.com (HELO smile) ([10.237.72.86]) by orsmga003.jf.intel.com with ESMTP; 17 Jul 2018 08:46:53 -0700 Message-ID: Subject: Re: [PATCH v3 0/3] add crc64 calculation as kernel library From: Andy Shevchenko To: Coly Li , linux-kernel@vger.kernel.org Cc: linux-bcache@vger.kernel.org, linux-block@vger.kernel.org, Greg Kroah-Hartman , Linus Torvalds , Thomas Gleixner , Michael Lyle , Kent Overstreet , Kate Stewart Date: Tue, 17 Jul 2018 18:46:53 +0300 In-Reply-To: <20180717145525.50852-1-colyli@suse.de> References: <20180717145525.50852-1-colyli@suse.de> Organization: Intel Finland Oy Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.1-2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2018-07-17 at 22:55 +0800, Coly Li wrote: > This patch set adds basic implementation of crc64 calculation as Linux > kernel library. Since bcache already does crc64 by itself, this patch > set also modifies bcache code to use the new crc64 library routine. > > bcache uses crc64 as storage checksum, if a change of crc lib routines > results an inconsistent result, the unmatched checksum may make bcache > 'think' the on-disk is corrupted, such change should be avoided or > detected as early as possible. Therefore the last patch in this series > adds a crc test framework, to check consistency of different > calculations. > Thanks, I have commented individual patches, though I didn't see patch 3/3 and... > Andy Shevchenko (1): > lib/crc64: add crc64 option to lib/Kconfig > > Coly Li (3): > lib: add crc64 calculation routines > bcache: use routines from lib/crc64.c for CRC64 calculation > lib/test_crc: Add test cases for crc calculation ...this part looks weird. Do you use `git format-patch --cover-letter`? -- Andy Shevchenko Intel Finland Oy