Re: [PATCH] kernel/resource: make iomem_resource implicit in release_mem_region_adjustable()

2020-09-17 Thread Pankaj Gupta
> "mem" in the name already indicates the root, similar to > release_mem_region() and devm_request_mem_region(). Make it implicit. > The only single caller always passes iomem_resource, other parents are > not applicable. > > Suggested-by: Wei Yang > Cc: Andrew Morton > Cc: Michal Hocko > Cc:

Re: [PATCH v5 0/5] mm: introduce memfd_secret system call to create "secret" memory areas

2020-09-17 Thread Mike Rapoport
On Wed, Sep 16, 2020 at 04:20:20PM -0700, Andrew Morton wrote: > On Wed, 16 Sep 2020 10:35:34 +0300 Mike Rapoport wrote: > > > This is an implementation of "secret" mappings backed by a file descriptor. > > I've dropped the boot time reservation patch for now as it is not strictly > > required

Re: [PATCH] pmem: export the symbols __copy_user_flushcache and __copy_from_user_flushcache

2020-09-17 Thread Christoph Hellwig
On Wed, Sep 16, 2020 at 10:40:13AM -0700, Dan Williams wrote: > > Before nvfs gets included in the kernel, I need to distribute it as a > > module. So, it would make my maintenance easier. But if you don't want to > > export it now, no problem, I can just copy __copy_user_flushcache from the > >

Re: dm: Call proper helper to determine dax support

2020-09-17 Thread Jan Kara
On Wed 16-09-20 11:22:05, Mike Snitzer wrote: > On Wed, Sep 16 2020 at 11:14am -0400, > Jan Kara wrote: > > > DM was calling generic_fsdax_supported() to determine whether a device > > referenced in the DM table supports DAX. However this is a helper for > > "leaf" device drivers so that > >

Re: [PATCH v5 0/5] mm: introduce memfd_secret system call to create "secret" memory areas

2020-09-17 Thread Mike Rapoport
On Thu, Sep 17, 2020 at 07:46:12AM +0200, Michael Kerrisk (man-pages) wrote: > On Thu, 17 Sep 2020 at 01:20, Andrew Morton wrote: > > > > On Wed, 16 Sep 2020 10:35:34 +0300 Mike Rapoport wrote: > > > > > This is an implementation of "secret" mappings backed by a file > > > descriptor. > > >

Re: regression on 5.9.0-rc5: mount fsdax w/o dax lead kernel panic

2020-09-17 Thread Ira Weiny
On Mon, Sep 14, 2020 at 02:48:12PM +0800, Yi Zhang wrote: > > I check the commit, seems it was introduced with bellow commit: > > commit 6180bb446ab624b9ab8bf201ed251ca87f07b413 > Author: Coly Li > Date:   Fri Sep 4 00:16:25 2020 +0800 > >     dax: fix detection of dax support for

Re: [PATCH] dm: Call proper helper to determine dax support

2020-09-17 Thread Dan Williams
On Thu, Sep 17, 2020 at 7:58 AM Huang Adrian wrote: > > On Thu, Sep 17, 2020 at 6:42 PM Jan Kara wrote: > > > > On Thu 17-09-20 02:28:57, Dan Williams wrote: > > > On Wed, Sep 16, 2020 at 8:15 AM Jan Kara wrote: > > > > > > > > DM was calling generic_fsdax_supported() to determine whether a

Re: [PATCH v2 6/9] iomap: Convert read_count to read_bytes_pending

2020-09-17 Thread Darrick J. Wong
On Fri, Sep 11, 2020 at 12:47:04AM +0100, Matthew Wilcox (Oracle) wrote: > Instead of counting bio segments, count the number of bytes submitted. > This insulates us from the block layer's definition of what a 'same page' > is, which is not necessarily clear once THPs are involved. > >

Re: [PATCH v2 9/9] iomap: Change calling convention for zeroing

2020-09-17 Thread Darrick J. Wong
On Thu, Sep 17, 2020 at 11:11:15PM +0100, Matthew Wilcox wrote: > On Thu, Sep 17, 2020 at 03:05:00PM -0700, Darrick J. Wong wrote: > > > -static loff_t > > > -iomap_zero_range_actor(struct inode *inode, loff_t pos, loff_t count, > > > - void *data, struct iomap *iomap, struct iomap

Re: [PATCH v2 7/9] iomap: Convert write_count to write_bytes_pending

2020-09-17 Thread Darrick J. Wong
On Fri, Sep 11, 2020 at 12:47:05AM +0100, Matthew Wilcox (Oracle) wrote: > Instead of counting bio segments, count the number of bytes submitted. > This insulates us from the block layer's definition of what a 'same page' > is, which is not necessarily clear once THPs are involved. > >

Re: [PATCH v2 8/9] iomap: Convert iomap_write_end types

2020-09-17 Thread Darrick J. Wong
On Fri, Sep 11, 2020 at 12:47:06AM +0100, Matthew Wilcox (Oracle) wrote: > iomap_write_end cannot return an error, so switch it to return > size_t instead of int and remove the error checking from the callers. > Also convert the arguments to size_t from unsigned int, in case anyone > ever wants to

Re: [PATCH v2 5/9] iomap: Support arbitrarily many blocks per page

2020-09-17 Thread Darrick J. Wong
On Fri, Sep 11, 2020 at 12:47:03AM +0100, Matthew Wilcox (Oracle) wrote: > Size the uptodate array dynamically to support larger pages in the > page cache. With a 64kB page, we're only saving 8 bytes per page today, > but with a 2MB maximum page size, we'd have to allocate more than 4kB > per

Re: [PATCH v2 9/9] iomap: Change calling convention for zeroing

2020-09-17 Thread Darrick J. Wong
On Fri, Sep 11, 2020 at 12:47:07AM +0100, Matthew Wilcox (Oracle) wrote: > Pass the full length to iomap_zero() and dax_iomap_zero(), and have > them return how many bytes they actually handled. This is preparatory > work for handling THP, although it looks like DAX could actually take >

Re: [PATCH v2 9/9] iomap: Change calling convention for zeroing

2020-09-17 Thread Matthew Wilcox
On Thu, Sep 17, 2020 at 03:05:00PM -0700, Darrick J. Wong wrote: > > -static loff_t > > -iomap_zero_range_actor(struct inode *inode, loff_t pos, loff_t count, > > - void *data, struct iomap *iomap, struct iomap *srcmap) > > +static loff_t iomap_zero_range_actor(struct inode *inode,

Re: [PATCH v2 1/1] dax: Fix stack overflow when mounting fsdax pmem device

2020-09-17 Thread Dan Williams
On Wed, Sep 16, 2020 at 6:41 AM Adrian Huang wrote: > > From: Adrian Huang > > When mounting fsdax pmem device, commit 6180bb446ab6 ("dax: fix > detection of dax support for non-persistent memory block devices") > introduces the stack overflow [1][2]. Here is the call path for > mounting ext4

Re: [PATCH] dm: Call proper helper to determine dax support

2020-09-17 Thread Jan Kara
On Thu 17-09-20 02:28:57, Dan Williams wrote: > On Wed, Sep 16, 2020 at 8:15 AM Jan Kara wrote: > > > > DM was calling generic_fsdax_supported() to determine whether a device > > referenced in the DM table supports DAX. However this is a helper for > > "leaf" device drivers so that > > they

Re: [PATCH v2] powerpc/papr_scm: Fix warning triggered by perf_stats_show()

2020-09-17 Thread Michael Ellerman
On Sat, 12 Sep 2020 13:44:51 +0530, Vaibhav Jain wrote: > A warning is reported by the kernel in case perf_stats_show() returns > an error code. The warning is of the form below: > > papr_scm ibm,persistent-memory:ibm,pmemory@4411: > Failed to query performance stats, Err:-10 >

[PATCH v3 1/1] dax: Fix stack overflow when mounting fsdax pmem device

2020-09-17 Thread Adrian Huang
From: Adrian Huang When mounting fsdax pmem device, commit 6180bb446ab6 ("dax: fix detection of dax support for non-persistent memory block devices") introduces the stack overflow [1][2]. Here is the call path for mounting ext4 file system: ext4_fill_super bdev_dax_supported

Re: [PATCH] pmem: fix __copy_user_flushcache

2020-09-17 Thread Dan Williams
On Wed, Sep 16, 2020 at 11:57 AM Mikulas Patocka wrote: > > > > On Wed, 16 Sep 2020, Dan Williams wrote: > > > On Wed, Sep 16, 2020 at 10:24 AM Mikulas Patocka > > wrote: > > > > > > > > > > > > On Wed, 16 Sep 2020, Dan Williams wrote: > > > > > > > On Wed, Sep 16, 2020 at 3:57 AM Mikulas

Re: [PATCH v3 1/1] dax: Fix stack overflow when mounting fsdax pmem device

2020-09-17 Thread Dan Williams
On Thu, Sep 17, 2020 at 4:18 AM Adrian Huang wrote: > > From: Adrian Huang > > When mounting fsdax pmem device, commit 6180bb446ab6 ("dax: fix > detection of dax support for non-persistent memory block devices") > introduces the stack overflow [1][2]. Here is the call path for > mounting ext4

Fwd: Adjunto mi plan de estudios - N? (304637)

2020-09-17 Thread Magno
___ Linux-nvdimm mailing list -- linux-nvdimm@lists.01.org To unsubscribe send an email to linux-nvdimm-le...@lists.01.org

Re: [PATCH] dm: Call proper helper to determine dax support

2020-09-17 Thread Dan Williams
On Thu, Sep 17, 2020 at 10:49 AM Dan Williams wrote: > > On Thu, Sep 17, 2020 at 7:58 AM Huang Adrian > wrote: > > > > On Thu, Sep 17, 2020 at 6:42 PM Jan Kara wrote: > > > > > > On Thu 17-09-20 02:28:57, Dan Williams wrote: > > > > On Wed, Sep 16, 2020 at 8:15 AM Jan Kara wrote: > > > > > >

[PATCH v2] dm: Call proper helper to determine dax support

2020-09-17 Thread Dan Williams
From: Jan Kara DM was calling generic_fsdax_supported() to determine whether a device referenced in the DM table supports DAX. However this is a helper for "leaf" device drivers so that they don't have to duplicate common generic checks. High level code should call dax_supported() helper which

Fwd: factura pendiente - N? (363487)

2020-09-17 Thread Notificacion
___ Linux-nvdimm mailing list -- linux-nvdimm@lists.01.org To unsubscribe send an email to linux-nvdimm-le...@lists.01.org

Re: [PATCH v5 0/5] mm: introduce memfd_secret system call to create "secret" memory areas

2020-09-17 Thread Qian Cai
On Wed, 2020-09-16 at 10:35 +0300, Mike Rapoport wrote: > From: Mike Rapoport > > Hi, > > This is an implementation of "secret" mappings backed by a file descriptor. > I've dropped the boot time reservation patch for now as it is not strictly > required for the basic usage and can be easily

Re: [PATCH] dm: Call proper helper to determine dax support

2020-09-17 Thread Dan Williams
On Wed, Sep 16, 2020 at 8:15 AM Jan Kara wrote: > > DM was calling generic_fsdax_supported() to determine whether a device > referenced in the DM table supports DAX. However this is a helper for "leaf" > device drivers so that > they don't have to duplicate common generic checks. High level code

Re: [PATCH] dm: Call proper helper to determine dax support

2020-09-17 Thread Huang Adrian
On Thu, Sep 17, 2020 at 6:42 PM Jan Kara wrote: > > On Thu 17-09-20 02:28:57, Dan Williams wrote: > > On Wed, Sep 16, 2020 at 8:15 AM Jan Kara wrote: > > > > > > DM was calling generic_fsdax_supported() to determine whether a device > > > referenced in the DM table supports DAX. However this is

Re: [PATCH] dm: Call proper helper to determine dax support

2020-09-17 Thread Huang Adrian
On Thu, Sep 17, 2020 at 10:57 PM Huang Adrian wrote: > > Note: Still no lock after applying Dan's fixup. It shows the same call > trace with/without Dan's fixup. Sorry, fat-finger. Should be 'Still no *luck*' -- Adrian ___ Linux-nvdimm mailing list --

Re: [PATCH] device-dax: make dev_dax_kmem_probe() static

2020-09-17 Thread Ira Weiny
On Sat, Sep 12, 2020 at 11:39:01AM +0800, Jason Yan wrote: > This eliminates the following sparse warning: > > drivers/dax/kmem.c:38:5: warning: symbol 'dev_dax_kmem_probe' was not > declared. Should it be static? > > Reported-by: Hulk Robot > Signed-off-by: Jason Yan Reviewed-by: Ira Weiny