Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1213821

Re: [PATCH v2 9/9] devm_memremap_pages: protect against pmem device unbind

From Christoph Hellwig <hch@lst.de>
Newsgroups linux.kernel
Subject Re: [PATCH v2 9/9] devm_memremap_pages: protect against pmem device unbind
Date 2015-08-26 14:50 +0200
Message-ID <q1Ijo-602-19@gated-at.bofh.it> (permalink)
References <q1xQZ-7IF-3@gated-at.bofh.it> <q1xR1-7IF-19@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, Aug 25, 2015 at 09:28:13PM -0400, Dan Williams wrote:
> Given that:
> 
> 1/ device ->remove() can not be failed
> 
> 2/ a pmem device may be unbound at any time
> 
> 3/ we do not know what other parts of the kernel are actively using a
>    'struct page' from devm_memremap_pages()
> 
> ...provide a facility for active usages of device memory to block pmem
> device unbind.  With a percpu_ref it should be feasible to take a
> reference on a per-I/O or other high frequency basis.

Without a caller of get_page_map this is just adding dead code.  I'd
suggest to group it in a series with that caller.

Also if the page_map gets exposed in a header the name is a bit too generic.
memremap_map maybe?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v2 9/9] devm_memremap_pages: protect against pmem device  unbind Dan Williams <dan.j.williams@intel.com> - 2015-08-26 03:40 +0200
  Re: [PATCH v2 9/9] devm_memremap_pages: protect against pmem  device unbind Christoph Hellwig <hch@lst.de> - 2015-08-26 14:50 +0200
    Re: [PATCH v2 9/9] devm_memremap_pages: protect against pmem device  unbind "Williams, Dan J" <dan.j.williams@intel.com> - 2015-08-26 23:40 +0200
      Re: [PATCH v2 9/9] devm_memremap_pages: protect against pmem  device unbind "hch@lst.de" <hch@lst.de> - 2015-08-27 09:40 +0200

csiph-web