linux-nvme.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: haggaie@mellanox.com (Haggai Eran)
Subject: [RFC 6/7] NVMe: Use genalloc to allocate CMB regions
Date: Tue, 2 Aug 2016 06:48:36 +0000	[thread overview]
Message-ID: <1470120518.20129.2.camel@mellanox.com> (raw)
In-Reply-To: <20160801155348.GB23224@infradead.org>

On ?', 2016-08-01@08:53 -0700, Christoph Hellwig wrote:
> On Mon, Aug 01, 2016@09:57:32AM +0300, Haggai Eran wrote:
> > 
> > Register the CMB in a gen_pool dedicated to manage CMB regions. Use
> > the
> > pool to allocate the SQs to make sure they are registered.
> And why would the NVMe driver care if "they are registered"?
I just meant that they are allocated through genalloc so that it
doesn't allocate the same buffer again.

> 
> Once we start allowing diverse CMB uses (what happened to Jon's
> patches
> btw?) genalloc might be a good backend allocator, but without that
> it's entirely pointless.??
I missed Jon's patches. I'll have a look. The point in this patch was
to allow this diverse use in the next patch.

> Also please don't introduce useless header
> files.
Fair enough.

Thanks,
Haggai

  parent reply	other threads:[~2016-08-02  6:48 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-01  6:57 [RFC 0/7] RDMA subsystem DMA-BUF support Haggai Eran
2016-08-01  6:57 ` [RFC 1/7] IB/mlx5: Helper for posting work-requests on the UMR QP Haggai Eran
2016-08-01  6:57 ` [RFC 2/7] IB/mlx5: Support registration and invalidate operations " Haggai Eran
2016-08-01  6:57 ` [RFC 3/7] IB/core: Helpers for mapping DMA-BUF in MRs Haggai Eran
2016-08-01  6:57 ` [RFC 4/7] IB/uverbs: Add command to register a DMA-BUF fd Haggai Eran
2016-08-01  6:57 ` [RFC 5/7] IB/mlx5: Implement reg_user_dma_buf_mr Haggai Eran
2016-08-01  6:57 ` [RFC 6/7] NVMe: Use genalloc to allocate CMB regions Haggai Eran
2016-08-01 15:53   ` Christoph Hellwig
2016-08-01 16:20     ` Jon Derrick
2016-08-02  7:15       ` Haggai Eran
2016-08-02  6:48     ` Haggai Eran [this message]
2016-08-01  6:57 ` [RFC 7/7] NVMe: CMB on DMA-BUF Haggai Eran
2016-08-01 15:52   ` Christoph Hellwig
2016-08-02  7:10     ` Haggai Eran
2016-08-04 11:56       ` hch
2016-08-07  5:24         ` Haggai Eran
2016-08-03 10:02     ` Sagi Grimberg

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=1470120518.20129.2.camel@mellanox.com \
    --to=haggaie@mellanox.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 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).