From: "Ma, Jianpeng" <jianpeng.ma@intel.com>
To: Randy Dunlap <rdunlap@infradead.org>,
"Ren, Qiaowei" <qiaowei.ren@intel.com>,
"linux-bcache@vger.kernel.org" <linux-bcache@vger.kernel.org>
Cc: "colyli@suse.de" <colyli@suse.de>,
"rdunlap@infradead.oom" <rdunlap@infradead.oom>,
Colin Ian King <colin.king@canonical.com>
Subject: RE: [bch-nvm-pages v9 2/6] bcache: initialize the nvm pages allocator
Date: Thu, 29 Apr 2021 00:13:46 +0000 [thread overview]
Message-ID: <BN7PR11MB26097300B6C87684C712CE7DFD5F9@BN7PR11MB2609.namprd11.prod.outlook.com> (raw)
In-Reply-To: <779bb3fb-ad1c-35d0-c43d-b25d39200570@infradead.org>
> -----Original Message-----
> From: Randy Dunlap <rdunlap@infradead.org>
> Sent: Thursday, April 29, 2021 12:30 AM
> To: Ren, Qiaowei <qiaowei.ren@intel.com>; linux-bcache@vger.kernel.org
> Cc: Ma, Jianpeng <jianpeng.ma@intel.com>; colyli@suse.de;
> rdunlap@infradead.oom; Colin Ian King <colin.king@canonical.com>
> Subject: Re: [bch-nvm-pages v9 2/6] bcache: initialize the nvm pages allocator
>
> On 4/28/21 2:39 PM, Qiaowei Ren wrote:
> > From: Jianpeng Ma <jianpeng.ma@intel.com>
> >
> > This patch define the prototype data structures in memory and
> > initializes the nvm pages allocator.
> >
> > The nvm address space which is managed by this allocatior can consist
> > of many nvm namespaces, and some namespaces can compose into one
> nvm
> > set, like cache set. For this initial implementation, only one set can
> > be supported.
> >
> > The users of this nvm pages allocator need to call
> > regiseter_namespace() to register the nvdimm device (like /dev/pmemX)
> > into this allocator as the instance of struct nvm_namespace.
> >
> > v9:
> > -Fix Kconfig dependance error(Reported-by Randy)
> > -Fix an uninitialized return value(Colin)
> >
> > Reported-by: Randy Dunlap <rdunlap@infradead.org>
> > Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
> > Co-developed-by: Qiaowei Ren <qiaowei.ren@intel.com>
> > Signed-off-by: Qiaowei Ren <qiaowei.ren@intel.com>
> > Signed-off-by: Coly Li <colyli@suse.de>
> > Signed-off-by: Colin Ian King <colin.king@canonical.com>
> > ---
> > drivers/md/bcache/Kconfig | 8 +
> > drivers/md/bcache/Makefile | 2 +-
> > drivers/md/bcache/nvm-pages.c | 285
> > ++++++++++++++++++++++++++++++++++
> > drivers/md/bcache/nvm-pages.h | 74 +++++++++
> > drivers/md/bcache/super.c | 3 +
> > 5 files changed, 371 insertions(+), 1 deletion(-) create mode 100644
> > drivers/md/bcache/nvm-pages.c create mode 100644
> > drivers/md/bcache/nvm-pages.h
> >
> > diff --git a/drivers/md/bcache/Kconfig b/drivers/md/bcache/Kconfig
> > index d1ca4d059c20..3057da4cf8ff 100644
> > --- a/drivers/md/bcache/Kconfig
> > +++ b/drivers/md/bcache/Kconfig
> > @@ -35,3 +35,11 @@ config BCACHE_ASYNC_REGISTRATION
> > device path into this file will returns immediately and the real
> > registration work is handled in kernel work queue in asynchronous
> > way.
> > +
> > +config BCACHE_NVM_PAGES
> > + bool "NVDIMM support for bcache (EXPERIMENTAL)"
> > + depends on BCACHE
> > + depends on LIBNVDIMM
> > + depends on DAX
> > + help
> > + nvm pages allocator for bcache.
>
> Please follow coding-style for Kconfig files:
>
> (from Documentation/process/coding-style.rst, section 10):
>
> For all of the Kconfig* configuration files throughout the source tree, the
> indentation is somewhat different. Lines under a ``config`` definition are
> indented with one tab, while help text is indented an additional two spaces.
>
>
> Also, that help text could be better.
Hi Randy:
Thanks very much! I'll change in next patch set.
Thanks!
Jianpeng
> --
> ~Randy
next prev parent reply other threads:[~2021-04-29 0:13 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-28 21:39 [bch-nvm-pages v9 0/6] nvm page allocator for bcache Qiaowei Ren
2021-04-28 21:39 ` [bch-nvm-pages v9 1/6] bcache: add initial data structures for nvm pages Qiaowei Ren
2021-04-28 21:39 ` [bch-nvm-pages v9 2/6] bcache: initialize the nvm pages allocator Qiaowei Ren
2021-04-28 16:29 ` Randy Dunlap
2021-04-29 0:13 ` Ma, Jianpeng [this message]
2021-04-28 17:53 ` Randy Dunlap
2021-05-11 3:53 ` Coly Li
2021-04-28 21:39 ` [bch-nvm-pages v9 3/6] bcache: initialization of the buddy Qiaowei Ren
2021-05-11 5:35 ` Coly Li
2021-04-28 21:39 ` [bch-nvm-pages v9 4/6] bcache: bch_nvm_alloc_pages() " Qiaowei Ren
2021-05-11 12:49 ` Coly Li
2021-05-18 2:27 ` Ma, Jianpeng
2021-05-18 2:45 ` Coly Li
2021-04-28 21:39 ` [bch-nvm-pages v9 5/6] bcache: bch_nvm_free_pages() " Qiaowei Ren
2021-05-11 13:41 ` Coly Li
2021-04-28 21:39 ` [bch-nvm-pages v9 6/6] bcache: get allocated pages from specific owner Qiaowei Ren
2021-05-11 13:45 ` Coly Li
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BN7PR11MB26097300B6C87684C712CE7DFD5F9@BN7PR11MB2609.namprd11.prod.outlook.com \
--to=jianpeng.ma@intel.com \
--cc=colin.king@canonical.com \
--cc=colyli@suse.de \
--cc=linux-bcache@vger.kernel.org \
--cc=qiaowei.ren@intel.com \
--cc=rdunlap@infradead.oom \
--cc=rdunlap@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).