From patchwork Wed Jan 9 05:31:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Huaisheng Ye X-Patchwork-Id: 10753415 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B49EB14E5 for ; Wed, 9 Jan 2019 05:31:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A2A2828DEF for ; Wed, 9 Jan 2019 05:31:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 963CA28DF8; Wed, 9 Jan 2019 05:31:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from ml01.01.org (ml01.01.org [198.145.21.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0C6A628DEF for ; Wed, 9 Jan 2019 05:31:50 +0000 (UTC) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id DBA61211B5071; Tue, 8 Jan 2019 21:31:50 -0800 (PST) X-Original-To: linux-nvdimm@lists.01.org Delivered-To: linux-nvdimm@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=135.84.80.237; helo=sender-pp-092.zoho.com; envelope-from=yehs2007@zoho.com; receiver=linux-nvdimm@lists.01.org Received: from sender-pp-092.zoho.com (sender-pp-092.zoho.com [135.84.80.237]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id A9215211B506D for ; Tue, 8 Jan 2019 21:31:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547011904; cv=none; d=zoho.com; s=zohoarc; b=JPscTfC8Q82D0MvDJAPotP/NLecXfoCq0b1ssG1Xkzq/iDoNv7DCjfbksfxQl1g4eFboFgJwMa0ZCfGXzhVC7H2mUt8LBcU6ZRwxSS+t2RnQFdhTAtPuiUCNJDe2+nmHvxRAJKTd1N/9mZ+rFc9Pdobu2JsBdyo6IEcigKNDgsg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1547011904; h=Cc:Date:From:Message-ID:Subject:To:ARC-Authentication-Results; bh=4lMfZZ/5tufo0Udnfw9vFuw1iI0gj/s3FGcicjIOBLQ=; b=MgqQqPjgNASGhGLaZJNY8r+qbc3Tt9oV2Nky9pawAfIdtcDVBb0SiwagnMz7/6g85smrm3yDhcOkUUobeI5ACiXiZuPxuTNPYpyDrOD8/BlW4Icw+Pk0lC8EgYTFedELOvDklTCVMIxk5PpJ+K1F3MtRoRZla0MdayqN5OqBdbs= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass header.i=zoho.com; spf=pass smtp.mailfrom=yehs2007@zoho.com; dmarc=pass header.from= header.from= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=zapps768; d=zoho.com; h=from:to:cc:subject:date:message-id; b=hoH38629Q0xQv+b0zLKSdPaQ9w1ivbaGiUy7DCMg4PPL+/cpXGYIrnKh3hHbUwC2F+ILa6mMyWjg YQNgMb0gWHoGYf7nr0LEyCqopO4ruBGtx+Y58Ni+fTm1a3zNy8oo DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1547011904; s=default; d=zoho.com; i=yehs2007@zoho.com; h=From:To:Cc:Subject:Date:Message-Id; l=1000; bh=4lMfZZ/5tufo0Udnfw9vFuw1iI0gj/s3FGcicjIOBLQ=; b=f6bjgQsuLvVWYtKCdIKXDV/VUBlQfgDhlZMTwu0NWQcuoUk2CQIpSNI1VWJH7D/m fYMcVyG/DvkB04WsmMoUriCu+Nm4UhBcAspNNEFAMGcmldbJf/ZZXuSjvADQ8U4U0HR +kC9bnGmZeI5h6Hev6UJ2+14mxpkbJOz4BKaOOac= Received: from YEHS1XR956R00D1.lenovo.com (123.120.89.99 [123.120.89.99]) by mx.zohomail.com with SMTPS id 15470119020141017.1832509629885; Tue, 8 Jan 2019 21:31:42 -0800 (PST) From: Huaisheng Ye To: snitzer@redhat.com, agk@redhat.com Subject: [RFC PATCH v2 0/4] add parameter for pmem cache device init Date: Wed, 9 Jan 2019 13:31:23 +0800 Message-Id: <20190109053127.8128-1-yehs2007@zoho.com> X-Mailer: git-send-email 2.17.0.windows.1 X-ZohoMailClient: External X-BeenThere: linux-nvdimm@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Linux-nvdimm developer list." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: jack@suse.cz, corbet@lwn.net, chengnt@lenovo.com, linux-nvdimm@lists.01.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, dm-devel@redhat.com, hch@lst.de MIME-Version: 1.0 Errors-To: linux-nvdimm-bounces@lists.01.org Sender: "Linux-nvdimm" X-Virus-Scanned: ClamAV using ClamSMTP From: Huaisheng Ye This patch set could be used for dm-writecache when use persistent memory as cache data device. Patch 1 and 2 go towards removing unused parameter and codes which actually doesn't really work. Patch 3 and 4 are targeted at solving problem fn ctr failed to work due to invalid magic or version, which is caused by the super block of pmem has messy data stored. Changes Since v1: - add optional parameter reinit to avoid invalid magic or version. [1]: https://lkml.org/lkml/2019/1/3/43 Huaisheng Ye (4): dm-writecache: remove unused size to writecache_flush_region dm-writecache: get rid of memory_data flush to writecache_flush_entry dm-writecache: expand pmem_reinit for struct dm_writecache Documentation/device-mapper: add optional parameter reinit Documentation/device-mapper/writecache.txt | 4 ++++ drivers/md/dm-writecache.c | 19 +++++++++++-------- 2 files changed, 15 insertions(+), 8 deletions(-)