From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A0960C4743C for ; Wed, 23 Jun 2021 11:50:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8A9E961076 for ; Wed, 23 Jun 2021 11:50:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230334AbhFWLwR (ORCPT ); Wed, 23 Jun 2021 07:52:17 -0400 Received: from verein.lst.de ([213.95.11.211]:50452 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230392AbhFWLwP (ORCPT ); Wed, 23 Jun 2021 07:52:15 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id D4DCB68AFE; Wed, 23 Jun 2021 13:49:54 +0200 (CEST) Date: Wed, 23 Jun 2021 13:49:54 +0200 From: Christoph Hellwig To: Coly Li Cc: Christoph Hellwig , "Huang, Ying" , Dan Williams , Jan Kara , Hannes Reinecke , linux-bcache@vger.kernel.org, linux-block@vger.kernel.org, Jianpeng Ma , Qiaowei Ren , axboe@kernel.dk Subject: Re: Ask help for code review (was Re: [PATCH 03/14] bcache: add initial data structures for nvm pages) Message-ID: <20210623114954.GA20363@lst.de> References: <20210615054921.101421-1-colyli@suse.de> <20210615054921.101421-4-colyli@suse.de> <24ad3795-813c-b50b-e983-56dccef1b0db@suse.de> <875yy6l2a1.fsf@yhuang6-desk2.ccr.corp.intel.com> <87czsdhy0u.fsf@yhuang6-desk2.ccr.corp.intel.com> <20210623070405.GA537@lst.de> <20210623072140.GA837@lst.de> <466c1678-8cdc-7240-1422-b435a599cad3@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <466c1678-8cdc-7240-1422-b435a599cad3@suse.de> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-bcache@vger.kernel.org On Wed, Jun 23, 2021 at 06:05:51PM +0800, Coly Li wrote: > The cache device (typically SSD) of bcache is designed to dedicate to a > single local machine. Any > storage migration between machines with different endians should firstly > flush the dirty data to > backing hard drive. Now my G5 died and I need to recover the data using my x86 laptop, what am I going to do? > >> If not, it won't be a problem here for this specific use case. > > It could change between one use and another. > > Hmm, I don't understand the implicit meaning of the above line. > Could you please offer a detail example ? There is no guarantee you nvdimm or CXL memory device will show up at the same address.