From: Pankaj Gupta <pagupta@redhat.com>
To: Jeff Moyer <jmoyer@redhat.com>, Jan Kara <jack@suse.cz>,
Dan Williams <dan.j.williams@intel.com>
Cc: KVM list <kvm@vger.kernel.org>,
"Michael S. Tsirkin" <mst@redhat.com>,
david <david@fromorbit.com>,
Qemu Developers <qemu-devel@nongnu.org>,
virtualization@lists.linux-foundation.org,
Andreas Dilger <adilger.kernel@dilger.ca>,
Ross Zwisler <zwisler@kernel.org>,
Andrea Arcangeli <aarcange@redhat.com>,
Dave Jiang <dave.jiang@intel.com>,
linux-nvdimm <linux-nvdimm@lists.01.org>,
Vishal L Verma <vishal.l.verma@intel.com>,
Matthew Wilcox <willy@infradead.org>,
Christoph Hellwig <hch@infradead.org>,
Linux ACPI <linux-acpi@vger.kernel.org>,
linux-ext4 <linux-ext4@vger.kernel.org>,
Len Brown <lenb@kernel.org>,
kilobyte@angband.pl, Rik van Riel <riel@surriel.com>,
yuval shaia <yuval.shaia@oracle.com>,
Stefan Hajnoczi <stefanha@redhat.com>,
Igor Mammedov <imammedo@redhat.com>,
lcapitulino@redhat.com, Nitesh Narayan Lal <nilal@redhat.com>,
Theodore Ts'o <tytso@mit.edu>,
Xiao
Subject: Re: [Qemu-devel] [PATCH v5 1/6] libnvdimm: nd_region flush callback support
Date: Thu, 18 Apr 2019 02:27:00 -0400 (EDT) [thread overview]
Message-ID: <695036448.22376013.1555568820649.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <x494l73z7th.fsf@segfault.boston.devel.redhat.com>
Hello,
Thank you for the suggestions on this.
>
> > On Thu 11-04-19 07:51:48, Dan Williams wrote:
> >> On Tue, Apr 9, 2019 at 9:09 PM Pankaj Gupta <pagupta@redhat.com> wrote:
> >> > + } else {
> >> > + if (nd_region->flush(nd_region))
> >> > + rc = -EIO;
> >>
> >> Given the common case wants to be fast and synchronous I think we
> >> should try to avoid retpoline overhead by default. So something like
> >> this:
> >>
> >> if (nd_region->flush == generic_nvdimm_flush)
> >> rc = generic_nvdimm_flush(...);
> >
> > I'd either add a comment about avoiding retpoline overhead here or just
> > make ->flush == NULL mean generic_nvdimm_flush(). Just so that people don't
> > get confused by the code.
>
> Isn't this premature optimization? I really don't like adding things
> like this without some numbers to show it's worth it.
Can we add the optimization after this version is merged.
Best regards,
Pankaj
>
> -Jeff
>
>
next prev parent reply other threads:[~2019-04-18 6:27 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20190410040826.24371-1-pagupta@redhat.com>
2019-04-10 4:08 ` [PATCH v5 1/6] libnvdimm: nd_region flush callback support Pankaj Gupta
2019-04-10 4:08 ` [PATCH v5 2/5] virtio-pmem: Add virtio pmem driver Pankaj Gupta
2019-04-10 4:08 ` [PATCH v5 3/6] libnvdimm: add dax_dev sync flag Pankaj Gupta
2019-04-10 4:08 ` [PATCH v5 4/6] dax: check synchronous mapping is supported Pankaj Gupta
2019-04-10 4:08 ` [PATCH v5 5/6] ext4: disable map_sync for async flush Pankaj Gupta
2019-04-10 4:08 ` [PATCH v5 6/6] xfs: " Pankaj Gupta
2019-04-10 8:08 ` [PATCH v5 0/6] virtio pmem driver Arkadiusz Miśkiewicz
[not found] ` <20190410040826.24371-5-pagupta@redhat.com>
2019-04-10 8:25 ` [PATCH v5 4/6] dax: check synchronous mapping is supported Jan Kara
[not found] ` <20190410082504.GF1426@quack2.suse.cz>
2019-04-10 8:31 ` Pankaj Gupta
[not found] ` <20190410040826.24371-4-pagupta@redhat.com>
2019-04-10 8:28 ` [PATCH v5 3/6] libnvdimm: add dax_dev sync flag Jan Kara
[not found] ` <20190410082804.GG1426@quack2.suse.cz>
2019-04-10 8:38 ` Pankaj Gupta
2019-04-11 14:56 ` Dan Williams
[not found] ` <CAPcyv4gXwE2k3JU94GPav0xn2LEgR6-7ZEVYyTHFRjCfTYjerw@mail.gmail.com>
2019-04-11 15:39 ` Pankaj Gupta
[not found] ` <20190410040826.24371-3-pagupta@redhat.com>
2019-04-10 12:24 ` [PATCH v5 2/5] virtio-pmem: Add virtio pmem driver Cornelia Huck
2019-04-10 13:12 ` Michael S. Tsirkin
[not found] ` <20190410091216-mutt-send-email-mst@kernel.org>
2019-04-10 14:03 ` [Qemu-devel] " Pankaj Gupta
[not found] ` <127904196.20807948.1554904981681.JavaMail.zimbra@redhat.com>
2019-04-10 14:31 ` Cornelia Huck
[not found] ` <20190410163139.4a04175e.cohuck@redhat.com>
2019-04-10 16:46 ` Michael S. Tsirkin
[not found] ` <20190410124114-mutt-send-email-mst@kernel.org>
2019-04-10 16:52 ` Cornelia Huck
[not found] ` <20190410142426.5bf0d9a4.cohuck@redhat.com>
2019-04-10 14:38 ` Yuval Shaia
2019-04-10 15:38 ` Pankaj Gupta
[not found] ` <20190410143826.GA7856@lap1>
2019-04-10 15:44 ` Pankaj Gupta
2019-04-10 14:41 ` Yuval Shaia
[not found] ` <20190410040826.24371-2-pagupta@redhat.com>
2019-04-11 14:51 ` [PATCH v5 1/6] libnvdimm: nd_region flush callback support Dan Williams
[not found] ` <CAPcyv4i1FjBzfcWtzeCvj-giHa9xaX0dMQ==q4LZC_L8VEqkHg@mail.gmail.com>
2019-04-11 15:57 ` [Qemu-devel] " Pankaj Gupta
[not found] ` <1463291806.21158433.1554998258746.JavaMail.zimbra@redhat.com>
2019-04-11 16:09 ` Dan Williams
[not found] ` <CAPcyv4gOPtgmVyk+zayRBtkbSivEvBNn1tyKL2ycT_q_nTHUUA@mail.gmail.com>
2019-04-11 16:23 ` Pankaj Gupta
2019-04-12 8:32 ` Jan Kara
[not found] ` <20190412083230.GA29850@quack2.suse.cz>
2019-04-12 13:12 ` Jeff Moyer
[not found] ` <x494l73z7th.fsf@segfault.boston.devel.redhat.com>
2019-04-18 6:27 ` Pankaj Gupta [this message]
2019-04-18 16:05 ` Dan Williams
[not found] ` <CAPcyv4jrNHqW3FuGkeo==ZoJr7LKahCv4_esnokfy7enek8=2Q@mail.gmail.com>
2019-04-18 16:10 ` Jeff Moyer
2019-04-18 16:18 ` Christoph Hellwig
[not found] ` <20190418161833.GA22970@infradead.org>
2019-04-18 18:14 ` Dan Williams
[not found] ` <CAPcyv4jPOF_+R6U17J_+88+X8LC-LSPCugA6gbKxuphuuFB2gg@mail.gmail.com>
2019-04-22 15:51 ` Jeff Moyer
[not found] ` <x497ebm82d4.fsf@segfault.boston.devel.redhat.com>
2019-04-22 19:44 ` Dan Williams
[not found] ` <CAPcyv4gGmN2LLMPy6BzWpYhRyV7fFNVgh=xAWSAdnnAWu5APtg@mail.gmail.com>
2019-04-22 21:03 ` Jeff Moyer
[not found] ` <x49ef5t7nwp.fsf@segfault.boston.devel.redhat.com>
2019-04-23 4:07 ` Pankaj Gupta
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=695036448.22376013.1555568820649.JavaMail.zimbra@redhat.com \
--to=pagupta@redhat.com \
--cc=aarcange@redhat.com \
--cc=adilger.kernel@dilger.ca \
--cc=dan.j.williams@intel.com \
--cc=dave.jiang@intel.com \
--cc=david@fromorbit.com \
--cc=hch@infradead.org \
--cc=imammedo@redhat.com \
--cc=jack@suse.cz \
--cc=jmoyer@redhat.com \
--cc=kilobyte@angband.pl \
--cc=kvm@vger.kernel.org \
--cc=lcapitulino@redhat.com \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-ext4@vger.kernel.org \
--cc=linux-nvdimm@lists.01.org \
--cc=mst@redhat.com \
--cc=nilal@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=riel@surriel.com \
--cc=stefanha@redhat.com \
--cc=tytso@mit.edu \
--cc=virtualization@lists.linux-foundation.org \
--cc=vishal.l.verma@intel.com \
--cc=willy@infradead.org \
--cc=yuval.shaia@oracle.com \
--cc=zwisler@kernel.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