All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matthew Wilcox <willy@infradead.org>
To: Dan Williams <dan.j.williams@intel.com>
Cc: Cheng-mean Liu <soccerl@microsoft.com>,
	Matthew Wilcox <mawilcox@microsoft.com>,
	"linux-nvdimm@lists.01.org" <linux-nvdimm@lists.01.org>
Subject: Re: [PATCH] nvdimm: Remove minimum size requirement
Date: Mon, 10 Jul 2017 13:30:12 -0700	[thread overview]
Message-ID: <20170710203012.GB22476@bombadil.infradead.org> (raw)
In-Reply-To: <CAPcyv4ioWUmiHbaGVcpxuK-j0JrcGk-_VcpR6yQtQMUwcRTRcQ@mail.gmail.com>

On Mon, Jul 10, 2017 at 11:41:08AM -0700, Dan Williams wrote:
> >         size = nvdimm_namespace_capacity(ndns);
> > -       if (size < ND_MIN_NAMESPACE_SIZE) {
> > -               dev_dbg(&ndns->dev, "%pa, too small must be at least %#x\n",
> > -                               &size, ND_MIN_NAMESPACE_SIZE);
> > +       if (size < PAGE_SIZE) {
> 
> If we're going to change the print level away from 'debug' then I
> think this should be "if (size && size < PAGE_SIZE)". The sub-system
> pre-creates 0-sized devices that are later configured into full
> namespaces, in those cases we shouldn't fire the warning.

Should we allow drivers to claim zero-sized devices?  If not, then the
dev_warn() should be predicated on size being non-zero, but the return
-ENODEV should still trigger.
_______________________________________________
Linux-nvdimm mailing list
Linux-nvdimm@lists.01.org
https://lists.01.org/mailman/listinfo/linux-nvdimm

  reply	other threads:[~2017-07-10 20:28 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-10 18:32 [PATCH] nvdimm: Remove minimum size requirement Matthew Wilcox
2017-07-10 18:41 ` Dan Williams
2017-07-10 20:30   ` Matthew Wilcox [this message]
     [not found]     ` <20170710203012.GB22476-PfSpb0PWhxZc2C7mugBRk2EX/6BAtgUQ@public.gmane.org>
2017-07-10 20:32       ` Cheng-mean Liu (SOCCER)
2017-07-10 20:32     ` Dan Williams
2017-07-12 15:04       ` Matthew Wilcox
2017-07-12 17:13         ` Dan Williams
     [not found]           ` <CAPcyv4h_=L=F9Gtf9NARH1vV4L0GBtRaUiSjZH-j5OeAdkV5Qg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-07-13  5:49             ` Socer Liu
2017-07-14  0:13               ` Dan Williams
     [not found]                 ` <CAPcyv4jhGSo4RZtiXHKFNwzYwM_YcfoVZx0d4V=iLzdX622rKg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-08-07 18:09                   ` Cheng-mean Liu (SOCCER)
2017-08-07 18:13                     ` Dan Williams
2017-08-31 22:30                       ` Dan Williams
     [not found]                         ` <CAPcyv4iA1ObGd9miPSOCc=YRziAxWXhC9NSL_TDo97g2t=dp_Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-09-01 15:44                           ` Socer Liu
     [not found] <1447312903.5521261.1505950873135.ref@mail.yahoo.com>
2017-09-20 23:41 ` Soccer Liu
     [not found]   ` <1447312903.5521261.1505950873135-sAHhhX/85wgbqTNvkayDYw@public.gmane.org>
2018-01-02 22:23     ` Cheng-mean Liu (SOCCER)

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=20170710203012.GB22476@bombadil.infradead.org \
    --to=willy@infradead.org \
    --cc=dan.j.williams@intel.com \
    --cc=linux-nvdimm@lists.01.org \
    --cc=mawilcox@microsoft.com \
    --cc=soccerl@microsoft.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.