Re: [PATCH v2 4/6] virtiofs: support bounce buffer backed by scattered pages

2024-03-13 Thread Brian Foster
On Sat, Mar 09, 2024 at 12:14:23PM +0800, Hou Tao wrote: > Hi, > > On 2/29/2024 11:01 PM, Brian Foster wrote: > > On Wed, Feb 28, 2024 at 10:41:24PM +0800, Hou Tao wrote: > >> From: Hou Tao > >> > >> When reading a file kept in virtiofs from kernel (

Re: [PATCH v2 4/6] virtiofs: support bounce buffer backed by scattered pages

2024-02-29 Thread Brian Foster
On Wed, Feb 28, 2024 at 10:41:24PM +0800, Hou Tao wrote: > From: Hou Tao > > When reading a file kept in virtiofs from kernel (e.g., insmod a kernel > module), if the cache of virtiofs is disabled, the read buffer will be > passed to virtiofs through out_args[0].value instead of pages. Because >

Re: [PATCH] xfs: fail dax mount if reflink is enabled on a partition

2022-09-14 Thread Brian Foster
On Wed, Sep 14, 2022 at 05:38:02PM +0800, Yang, Xiao/杨 晓 wrote: > On 2022/9/14 14:44, Yang, Xiao/杨 晓 wrote: > > On 2022/9/9 21:01, Brian Foster wrote: > > > Yes.. I don't recall all the internals of the tools and test, but IIRC > > > it relied on discard to perfor

Re: [PATCH] xfs: fail dax mount if reflink is enabled on a partition

2022-09-09 Thread Brian Foster
On Thu, Sep 08, 2022 at 09:46:04PM +0800, Shiyang Ruan wrote: > > > 在 2022/8/4 8:51, Darrick J. Wong 写道: > > On Wed, Aug 03, 2022 at 06:47:24AM +, ruansy.f...@fujitsu.com wrote: > > ... > > > > > > > > > > > > > > > BTW, since these patches (dax&reflink&rmap + THIS + pmem-unbind) > > > >

Re: [PATCH] xfs: fix return of uninitialized value in variable error

2021-04-09 Thread Brian Foster
error = 0; > retval = xfs_attr_node_hasname(args, &state); > if (retval != -ENOATTR && retval != -EEXIST) > goto out; I think it would be nicer to initialize at the top of the function as opposed to try and "preserve" historical behavior, but that nit aside: Reviewed-by: Brian Foster > -- > 2.30.2 >

Re: [PATCH] xfs: Wake CIL push waiters more reliably

2021-02-16 Thread Brian Foster
On Mon, Feb 15, 2021 at 02:36:38PM +0100, Donald Buczek wrote: > On 13.01.21 22:53, Dave Chinner wrote: > > [...] > > I agree that a throttling fix is needed, but I'm trying to > > understand the scope and breadth of the problem first instead of > > jumping the gun and making the wrong fix for the

Re: [PATCH] xfs: fix boolreturn.cocci warnings

2021-02-10 Thread Brian Foster
use > true/false instead of 1/0. > Generated by: scripts/coccinelle/misc/boolreturn.cocci > > Fixes: 37444fc4cc39 ("xfs: lift writable fs check up into log worker task") > CC: Brian Foster > Reported-by: kernel test robot > Signed-off-by: kernel test r

Re: rcu: INFO: rcu_sched self-detected stall on CPU: Workqueue: xfs-conv/md0 xfs_end_io

2021-02-08 Thread Brian Foster
On Tue, Feb 09, 2021 at 07:43:14AM +1100, Dave Chinner wrote: > On Mon, Feb 08, 2021 at 09:28:24AM -0800, Darrick J. Wong wrote: > > On Mon, Feb 09, 2021 at 09:11:40AM -0800, Paul E. McKenney wrote: > > > On Mon, Feb 08, 2021 at 10:44:58AM -0500, Brian Foster wrote: > > &

Re: rcu: INFO: rcu_sched self-detected stall on CPU: Workqueue: xfs-conv/md0 xfs_end_io

2021-02-08 Thread Brian Foster
On Mon, Feb 08, 2021 at 09:28:24AM -0800, Darrick J. Wong wrote: > On Mon, Feb 09, 2021 at 09:11:40AM -0800, Paul E. McKenney wrote: > > On Mon, Feb 08, 2021 at 10:44:58AM -0500, Brian Foster wrote: > > > On Mon, Feb 08, 2021 at 06:57:24AM -0800, Paul E. McKenney wrote: >

Re: rcu: INFO: rcu_sched self-detected stall on CPU: Workqueue: xfs-conv/md0 xfs_end_io

2021-02-08 Thread Brian Foster
On Mon, Feb 08, 2021 at 06:57:24AM -0800, Paul E. McKenney wrote: > On Mon, Feb 08, 2021 at 09:07:24AM -0500, Brian Foster wrote: > > On Fri, Feb 05, 2021 at 09:12:40AM -0800, Paul E. McKenney wrote: > > > On Fri, Feb 05, 2021 at 08:29:06AM +0100, Paul Menzel wrote: > &

Re: rcu: INFO: rcu_sched self-detected stall on CPU: Workqueue: xfs-conv/md0 xfs_end_io

2021-02-08 Thread Brian Foster
On Fri, Feb 05, 2021 at 09:12:40AM -0800, Paul E. McKenney wrote: > On Fri, Feb 05, 2021 at 08:29:06AM +0100, Paul Menzel wrote: > > Dear Linux folks, > > > > > > On a Dell PowerEdge T630/0NT78X, BIOS 2.8.0 05/23/2018 with Linux 5.4.57, we > > twice saw a self-detected stall on a CPU (October 27t

Re: [PATCH] xfs: fix unused variable warning

2021-02-04 Thread Brian Foster
Werror,-Wunused-variable] > > Remove the variable declaration and open-code it inside > of the assertion. > > Fixes: 303591a0a947 ("xfs: cover the log during log quiesce") > Signed-off-by: Arnd Bergmann > --- I sent basically the same patch[1] about a week ago

Re: linux-next: build warning after merge of the xfs tree

2021-01-25 Thread Brian Foster
Feel free to apply or squash into the original commit. Brian --- 8< --- >From 6078f06e2bd4c82111a85a2032c39a56654b0be6 Mon Sep 17 00:00:00 2001 From: Brian Foster Date: Mon, 25 Jan 2021 08:22:56 -0500 Subject: [PATCH] xfs: fix unused log variable in xfs_log_cover() The log variable is only used in kernels

Re: [PATCH] xfs: set inode size after creating symlink

2021-01-21 Thread Brian Foster
; Signed-off-by: Jeffrey Mitchell > --- Reviewed-by: Brian Foster > fs/xfs/xfs_symlink.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/fs/xfs/xfs_symlink.c b/fs/xfs/xfs_symlink.c > index 1f43fd7f3209..c835827ae389 100644 > --- a/fs/xfs/xf

Re: [PATCH] xfs: Wake CIL push waiters more reliably

2021-01-11 Thread Brian Foster
On Fri, Jan 08, 2021 at 11:56:57AM -0500, Brian Foster wrote: > On Fri, Jan 08, 2021 at 08:54:44AM +1100, Dave Chinner wrote: > > On Mon, Jan 04, 2021 at 11:23:53AM -0500, Brian Foster wrote: > > > On Thu, Dec 31, 2020 at 09:16:11AM +1100, Dave Chinner wrote: > > > >

Re: [PATCH] xfs: Wake CIL push waiters more reliably

2021-01-08 Thread Brian Foster
On Fri, Jan 08, 2021 at 08:54:44AM +1100, Dave Chinner wrote: > On Mon, Jan 04, 2021 at 11:23:53AM -0500, Brian Foster wrote: > > On Thu, Dec 31, 2020 at 09:16:11AM +1100, Dave Chinner wrote: > > > On Wed, Dec 30, 2020 at 12:56:27AM +0100, Donald Buczek wrote: > > > &g

Re: [PATCH] xfs: Wake CIL push waiters more reliably

2021-01-04 Thread Brian Foster
On Thu, Dec 31, 2020 at 09:16:11AM +1100, Dave Chinner wrote: > On Wed, Dec 30, 2020 at 12:56:27AM +0100, Donald Buczek wrote: > > Threads, which committed items to the CIL, wait in the xc_push_wait > > waitqueue when used_space in the push context goes over a limit. These > > threads need to be wo

Re: v5.10.1 xfs deadlock

2020-12-18 Thread Brian Foster
On Thu, Dec 17, 2020 at 10:30:37PM +0100, Donald Buczek wrote: > On 17.12.20 20:43, Brian Foster wrote: > > On Thu, Dec 17, 2020 at 06:44:51PM +0100, Donald Buczek wrote: > > > Dear xfs developer, > > > > > > I was doing some testing on a Linux 5.10.1 system wi

Re: v5.10.1 xfs deadlock

2020-12-17 Thread Brian Foster
On Thu, Dec 17, 2020 at 06:44:51PM +0100, Donald Buczek wrote: > Dear xfs developer, > > I was doing some testing on a Linux 5.10.1 system with two 100 TB xfs > filesystems on md raid6 raids. > > The stress test was essentially `cp -a`ing a Linux source repository with two > threads in parallel

Re: [PATCH -next] fs/xfs: convert comma to semicolon

2020-12-11 Thread Brian Foster
On Fri, Dec 11, 2020 at 04:41:12PM +0800, Zheng Yongjun wrote: > Replace a comma between expression statements by a semicolon. > > Signed-off-by: Zheng Yongjun > --- Reviewed-by: Brian Foster > fs/xfs/libxfs/xfs_btree.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(

Re: [PATCH] iomap: Fix the write_count in iomap_add_to_ioend().

2020-09-17 Thread Brian Foster
On Thu, Sep 17, 2020 at 09:04:55AM +0100, Christoph Hellwig wrote: > On Wed, Sep 16, 2020 at 09:07:14AM -0400, Brian Foster wrote: > > Dave described the main purpose earlier in this thread [1]. The initial > > motivation is that we've had downstream reports of soft lo

Re: [PATCH] iomap: Fix the write_count in iomap_add_to_ioend().

2020-09-16 Thread Brian Foster
On Wed, Sep 16, 2020 at 09:45:10AM +0100, Christoph Hellwig wrote: > On Tue, Sep 15, 2020 at 05:12:42PM -0700, Darrick J. Wong wrote: > > On Tue, Aug 25, 2020 at 10:49:17AM -0400, Brian Foster wrote: > > > cc Ming > > > > > > On Tue, Aug 25, 2020 at

Re: [PATCH] iomap: Fix the write_count in iomap_add_to_ioend().

2020-08-31 Thread Brian Foster
On Mon, Aug 31, 2020 at 12:01:07PM +0800, Ming Lei wrote: > On Tue, Aug 25, 2020 at 10:49:17AM -0400, Brian Foster wrote: > > cc Ming > > > > On Tue, Aug 25, 2020 at 10:42:03AM +1000, Dave Chinner wrote: > > > On Mon, Aug 24, 2020 at 11:48:41AM -0400, Brian Foster

Re: [PATCH] iomap: Fix the write_count in iomap_add_to_ioend().

2020-08-25 Thread Brian Foster
cc Ming On Tue, Aug 25, 2020 at 10:42:03AM +1000, Dave Chinner wrote: > On Mon, Aug 24, 2020 at 11:48:41AM -0400, Brian Foster wrote: > > On Mon, Aug 24, 2020 at 04:04:17PM +0100, Christoph Hellwig wrote: > > > On Mon, Aug 24, 2020 at 10:28:23AM -0400, Brian Foster wrote: >

Re: [PATCH] iomap: Fix the write_count in iomap_add_to_ioend().

2020-08-24 Thread Brian Foster
On Mon, Aug 24, 2020 at 04:04:17PM +0100, Christoph Hellwig wrote: > On Mon, Aug 24, 2020 at 10:28:23AM -0400, Brian Foster wrote: > > Do I understand the current code (__bio_try_merge_page() -> > > page_is_mergeable()) correctly in that we're checking for physical page

Re: [PATCH] iomap: Fix the write_count in iomap_add_to_ioend().

2020-08-24 Thread Brian Foster
On Sat, Aug 22, 2020 at 02:13:12PM +0100, Christoph Hellwig wrote: > On Sat, Aug 22, 2020 at 07:53:58AM +1000, Dave Chinner wrote: > > but iomap only allows BIO_MAX_PAGES when creating the bio. And: > > > > #define BIO_MAX_PAGES 256 > > > > So even on a 64k page machine, we should not be building

Re: [PATCH] xfs: fix use-after-free on CIL context on shutdown

2020-06-11 Thread Brian Foster
he hard > throttle size threshold. > > Fixes: 0e7ab7efe7745 ("xfs: Throttle commits on delayed background CIL push") > Reported-by: Yu Kuai > Signed-off-by: Dave Chinner > --- Looks reasonable: Reviewed-by: Brian Foster > fs/xfs/xfs_log_cil.c | 10 +- >

Re: [PATCH 09/12] iomap: lift the xfs writeback code to iomap

2019-10-16 Thread Brian Foster
On Wed, Oct 16, 2019 at 09:48:36AM +0200, Christoph Hellwig wrote: > On Wed, Oct 16, 2019 at 09:07:21AM +1100, Dave Chinner wrote: ... > > > +/* > > > + * Submit the bio for an ioend. We are passed an ioend with a bio > > > attached to > > > + * it, and we submit that bio. The ioend may be used fo

Re: [PATCH 10/11] xfs: use the iomap writeback code

2019-10-07 Thread Brian Foster
y: Darrick J. Wong > --- Reviewed-by: Brian Foster > fs/xfs/xfs_aops.c | 667 ++--- > fs/xfs/xfs_aops.h | 17 -- > fs/xfs/xfs_super.c | 11 +- > fs/xfs/xfs_trace.h | 39 --- > 4 files changed, 78 insertions(+), 656 deletions(-) > &g

Re: [PATCH 01/11] iomap: add tracing for the readpage / readpages

2019-10-07 Thread Brian Foster
On Sun, Oct 06, 2019 at 05:45:58PM +0200, Christoph Hellwig wrote: > Lift the xfs code for tracing address space operations to the iomap > layer. > > Signed-off-by: Christoph Hellwig > --- For the v7 version: Reviewed-by: Brian Foster > fs/iomap/Makefile | 16

Re: [PATCH 10/11] xfs: use the iomap write page code

2019-10-02 Thread Brian Foster
On Tue, Oct 01, 2019 at 09:11:51AM +0200, Christoph Hellwig wrote: > Use the new iomap writeback code that was copied from XFS to perform > writeback. > > Signed-off-by: Christoph Hellwig > [darrick: reduce this patch only to convert the xfs writeback code] > Signed-off-by: Darrick J. Wong > ---

Re: [PATCH 06/11] xfs: remove the readpage / readpages tracing code

2019-10-01 Thread Brian Foster
On Tue, Oct 01, 2019 at 09:11:47AM +0200, Christoph Hellwig wrote: > The actual iomap implementations now have equivalent trace points. > > Signed-off-by: Christoph Hellwig > --- Reviewed-by: Brian Foster > fs/xfs/xfs_aops.c | 2 -- > fs/xfs/xfs_trace.h | 26 -

Re: [PATCH 01/11] iomap: add tracing for the readpage / readpages

2019-10-01 Thread Brian Foster
On Tue, Oct 01, 2019 at 09:11:42AM +0200, Christoph Hellwig wrote: > Lift the xfs code for tracing address space operations to the iomap > layer. > > Signed-off-by: Christoph Hellwig > --- > fs/iomap/buffered-io.c | 7 +++ > include/trace/events/iomap.h | 27 ++

Re: [PATCH] xfs: avoid unused to_mp() function warning

2019-09-24 Thread Brian Foster
ect *kobject) > > Hence to_mp() might be removed safely to get rid of warning message. > > Signed-off-by: Austin Kim > --- Reviewed-by: Brian Foster > fs/xfs/xfs_sysfs.c | 13 - > 1 file changed, 13 deletions(-) > > diff --git a/fs/xfs/xfs_sysfs.c b/fs/

Re: [PATCH] xfs: libxfs: move xfs_perag_put late

2018-11-26 Thread Brian Foster
On Mon, Nov 26, 2018 at 06:36:19PM +0800, PanBian wrote: > On Mon, Nov 26, 2018 at 10:31:39AM +0100, Carlos Maiolino wrote: > > On Sat, Nov 24, 2018 at 05:44:20PM +0800, Pan Bian wrote: > > > The function xfs_alloc_get_freelist calls xfs_perag_put to drop the > > > reference. In this case, pag may

Re: xfs: cancel dfops on xfs_defer_finish() error

2018-08-07 Thread Brian Foster
On Tue, Aug 07, 2018 at 08:26:44AM -0700, Darrick J. Wong wrote: > On Tue, Aug 07, 2018 at 11:18:36AM -0400, Brian Foster wrote: > > On Tue, Aug 07, 2018 at 08:10:29AM -0700, Darrick J. Wong wrote: > > > On Tue, Aug 07, 2018 at 10:37:21AM -0400, Brian Foster wrote: > > >

Re: xfs: cancel dfops on xfs_defer_finish() error

2018-08-07 Thread Brian Foster
On Tue, Aug 07, 2018 at 08:10:29AM -0700, Darrick J. Wong wrote: > On Tue, Aug 07, 2018 at 10:37:21AM -0400, Brian Foster wrote: > > On Tue, Aug 07, 2018 at 03:14:07PM +0100, Colin Ian King wrote: > > > Hi, > > > > > > Recent commit 82ff27bc52a88cb5cc400

Re: xfs: cancel dfops on xfs_defer_finish() error

2018-08-07 Thread Brian Foster
On Tue, Aug 07, 2018 at 03:14:07PM +0100, Colin Ian King wrote: > Hi, > > Recent commit 82ff27bc52a88cb5cc400bfa64e210d3ec8dfebd ("xfs: automatic > dfops buffer relogging") removed the assignment of variable error: > > - error = xfs_defer_bjoin(tp->t_dfops, bp); > if (error) { >

Re: INFO: task hung in xlog_grant_head_check

2018-05-22 Thread Brian Foster
On Mon, May 21, 2018 at 10:55:02AM -0700, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:203ec2fed17a Merge tag 'armsoc-fixes' of git://git.kernel... > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=11c1ad7780 > kernel

Re: [PATCH] xfs: Correctly invert xfs_buftarg LRU isolation logic

2018-03-01 Thread Brian Foster
Nit: unless > Ultimately causing a xfs_buffer with ->b_lru_ref == 0, to take another > trip around LRU, while isolating buffers with non-zero b_lru_ref. > > Signed-off-by: Vratislav Bendel > CC: Brian Foster > --- It might be

Re: [PATCH] xfs: destroy mutex pag_ici_reclaim_lock before free xfs_perag_t structure

2018-01-12 Thread Brian Foster
e > perag. > > Signed-off-by: Xiongwei Song > --- Only relevant with mutex debugging enabled I suppose, but seems appropriate: Reviewed-by: Brian Foster > fs/xfs/xfs_mount.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/fs/xfs/xfs_mount.c b/fs/xfs

Re: [PATCH v2] xfs: scrub: avoid uninitialized return code

2017-11-02 Thread Brian Foster
;t produce a > buffer pointer. > > Fixes: 7c4a07a424c1 ("xfs: scrub directory/attribute btrees") > Reported-by: Arnd Bergmann > Signed-off-by: Darrick J. Wong > --- Reviewed-by: Brian Foster > fs/xfs/scrub/dabtree.c |2 +- > 1 file changed, 1 inserti

Re: [PATCH 2/2] xfs: fix unused variable warnings

2017-11-02 Thread Brian Foster
map tracing into > xfs_iext_update_extent") > Signed-off-by: Arnd Bergmann > --- Thanks for sending this: Reviewed-by: Brian Foster > fs/xfs/libxfs/xfs_bmap.c | 6 ++ > 1 file changed, 2 insertions(+), 4 deletions(-) > > diff --git a/fs/xfs/libxfs/xfs_bmap.c b/fs/xfs

Re: [PATCH 1/2] xfs: scrub: avoid uninitialized return code

2017-11-02 Thread Brian Foster
On Thu, Nov 02, 2017 at 12:11:12PM +0100, Arnd Bergmann wrote: > The newly added xfs_scrub_da_btree_block() function has one code path > that returns the 'error' variable without initializing it first, as > shown by this compiler warning: > > fs/xfs/scrub/dabtree.c: In function 'xfs_scrub_da_btree

Re: [PATCH v3 12/13] dax: handle truncate of dma-busy pages

2017-10-20 Thread Brian Foster
On Fri, Oct 20, 2017 at 10:27:22AM -0700, Dan Williams wrote: > On Fri, Oct 20, 2017 at 9:32 AM, Christoph Hellwig wrote: > > On Fri, Oct 20, 2017 at 08:42:00AM -0700, Dan Williams wrote: > >> I agree, but it needs quite a bit more thought and restructuring of > >> the truncate path. I also wonder

Re: [PATCH] xfs: move two more RT specific functions into CONFIG_XFS_RT

2017-10-14 Thread Brian Foster
On Sat, Oct 14, 2017 at 09:08:25AM +1100, Dave Chinner wrote: > On Fri, Oct 13, 2017 at 02:05:40PM +0200, Arnd Bergmann wrote: > > The last cleanup introduced two harmless warnings: > > > > fs/xfs/xfs_fsmap.c:480:1: warning: '__xfs_getfsmap_rtdev' defined but not > > used > > fs/xfs/xfs_fsmap.c:3

Re: [PATCH] xfs: move two more RT specific functions into CONFIG_XFS_RT

2017-10-13 Thread Brian Foster
er' > defined but not used > > This moves those two functions as well. > > Fixes: bb9c2e543325 ("xfs: move more RT specific code under CONFIG_XFS_RT") > Signed-off-by: Arnd Bergmann > --- I don't reproduce the warning, but the patch

Re: [PATCH] xfs: Fix bool initialization/comparison

2017-10-09 Thread Brian Foster
On Sat, Oct 07, 2017 at 04:02:21PM +0200, Thomas Meyer wrote: > Bool initializations should use true and false. Bool tests don't need > comparisons. > > Signed-off-by: Thomas Meyer > --- Reviewed-by: Brian Foster > > diff -u -p a/fs/xfs/libxfs/xfs_bmap.c b/fs/xfs/li

Re: [PATCH] xfs: remove redundant re-initialization of total_nr_pages

2017-09-18 Thread Brian Foster
> Value stored to 'total_nr_pages' during its initialization is never read > > Signed-off-by: Colin Ian King > --- Reviewed-by: Brian Foster > fs/xfs/xfs_buf.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/fs/xfs/xfs_buf.c b/fs/xfs/xfs_buf.c > index da1

Re: linux-next: build warning after merge of the xfs tree

2017-08-31 Thread Brian Foster
On Thu, Aug 31, 2017 at 07:57:52AM -0700, Darrick J. Wong wrote: > On Thu, Aug 31, 2017 at 06:30:41AM -0400, Brian Foster wrote: > > On Thu, Aug 31, 2017 at 10:07:03AM +1000, Stephen Rothwell wrote: > > > Hi all, > > > > > > After merging the xfs tre

Re: linux-next: build warning after merge of the xfs tree

2017-08-31 Thread Brian Foster
On Thu, Aug 31, 2017 at 10:07:03AM +1000, Stephen Rothwell wrote: > Hi all, > > After merging the xfs tree, today's linux-next build (powerpc > ppc64_defconfig) produced this warning: > > fs/xfs/xfs_buf_item.c: In function 'xfs_buf_item_unlock': > fs/xfs/xfs_buf_item.c:573:9: warning: unused vari

Re: [PATCH] xfs: fix semicolon.cocci warnings

2017-06-26 Thread Brian Foster
ge details on log reservation > overrun") > CC: Brian Foster > Signed-off-by: Fengguang Wu > --- Reviewed-by: Brian Foster > > xfs_log.c |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > --- a/fs/xfs/xfs_log.c > +++ b/fs/xfs/xfs_log.c > @@ -2089

Re: [xfs] 63db7c815b: XFS: Assertion failed: spin_is_locked(&bp->b_lock), file: fs/xfs/xfs_buf.c, line: 120

2017-06-06 Thread Brian Foster
ter > > commit 63db7c815bc0997c29e484d2409684fdd9fcd93b > Author: Brian Foster > AuthorDate: Wed May 31 08:22:52 2017 -0700 > Commit: Darrick J. Wong > CommitDate: Wed May 31 08:22:52 2017 -0700 > > xfs: use ->b_state to fix buffer I/O accounting release race > > We've

Re: [PATCH 02/23] xfs: use uuid_be to implement the uuid_t type

2017-05-18 Thread Brian Foster
On Thu, May 18, 2017 at 08:26:44AM +0200, Christoph Hellwig wrote: > Use the generic Linux definition to implement our UUID type, this will > allow using more generic infrastructure in the future. > > Signed-off-by: Christoph Hellwig > --- Reviewed-by: Brian Foster > fs/x

Re: [PATCH 14/23] xfs: use the common helper uuid_is_null()

2017-05-18 Thread Brian Foster
> userspace by libuuid and xfsprogs. > > Signed-off-by: Amir Goldstein > [hch: remove now unused uuid.[ch]] > Signed-off-by: Christoph Hellwig > --- Reviewed-by: Brian Foster > fs/xfs/Makefile | 3 +-- > fs/xfs/uuid.c| 32 ---

Re: [PATCH 12/23] xfs: remove uuid_getnodeuniq and xfs_uu_t

2017-05-18 Thread Brian Foster
On Thu, May 18, 2017 at 08:26:54AM +0200, Christoph Hellwig wrote: > Directly use the v1 intepretation of uuid_t instead. > > Signed-off-by: Christoph Hellwig > --- Reviewed-by: Brian Foster > fs/xfs/uuid.c | 25 - > fs/xfs/uuid.h

Re: [PATCH 01/23] xfs: use uuid_copy() helper to abstract uuid_t

2017-05-18 Thread Brian Foster
On Thu, May 18, 2017 at 08:26:43AM +0200, Christoph Hellwig wrote: > From: Amir Goldstein > > uuid_t definition is about to change. > > Signed-off-by: Amir Goldstein > Signed-off-by: Christoph Hellwig > --- Reviewed-by: Brian Foster > fs/xfs/xfs_inode_item.c | 8 ++

Re: [PATCH 4.4 48/76] libceph: force GFP_NOIO for socket allocations

2017-03-29 Thread Brian Foster
On Wed, Mar 29, 2017 at 01:18:34PM +0200, Michal Hocko wrote: > On Wed 29-03-17 13:14:42, Ilya Dryomov wrote: > > On Wed, Mar 29, 2017 at 1:05 PM, Brian Foster wrote: > > > On Wed, Mar 29, 2017 at 12:41:26PM +0200, Michal Hocko wrote: > > >> [CC xfs guys] > >

Re: [PATCH 4.4 48/76] libceph: force GFP_NOIO for socket allocations

2017-03-29 Thread Brian Foster
On Wed, Mar 29, 2017 at 12:41:26PM +0200, Michal Hocko wrote: > [CC xfs guys] > > On Wed 29-03-17 11:21:44, Ilya Dryomov wrote: > [...] > > This is a set of stack traces from http://tracker.ceph.com/issues/19309 > > (linked in the changelog): > > > > Workqueue: ceph-msgr con_work [libceph] > > ff

Re: [PATCH v2] xfs: Honor FALLOC_FL_KEEP_SIZE when punching ends of files

2017-03-21 Thread Brian Foster
On Sun, Mar 19, 2017 at 09:54:51PM -0700, Calvin Owens wrote: > When punching past EOF on XFS, fallocate(mode=PUNCH_HOLE|KEEP_SIZE) will > round the file size up to the nearest multiple of PAGE_SIZE: > > calvinow@vm-disks/generic-xfs-1 ~$ dd if=/dev/urandom of=test bs=2048 > count=1 > calvino

Re: [PATCH v7] mm: Add memory allocation watchdog kernel thread.

2017-03-10 Thread Brian Foster
On Fri, Mar 10, 2017 at 08:19:58PM +0900, Tetsuo Handa wrote: > Andrew Morton wrote: > > On Thu, 9 Mar 2017 19:46:14 +0900 Tetsuo Handa > > wrote: > > > Tetsuo Handa wrote: > > > > This patch adds a watchdog which periodically reports number of memory > > > > allocating tasks, dying tasks and OOM

Re: [PATCH 0/3] mm/fs: get PG_error out of the writeback reporting business

2017-03-09 Thread Brian Foster
On Thu, Mar 09, 2017 at 07:43:12AM -0500, Jeff Layton wrote: > On Thu, 2017-03-09 at 12:02 +0100, Jan Kara wrote: > > On Thu 09-03-17 05:47:51, Jeff Layton wrote: > > > On Thu, 2017-03-09 at 10:04 +0100, Jan Kara wrote: > > > > On Wed 08-03-17 21:57:25, Ted Tso wrote: > > > > > On Tue, Mar 07, 2017

Re: 4.11.0-rc1 boot resulted in WARNING: CPU: 14 PID: 1722 at fs/sysfs/dir.c:31 .sysfs_warn_dup+0x78/0xb0

2017-03-09 Thread Brian Foster
cc linux-block On Thu, Mar 09, 2017 at 04:20:06PM +0530, Abdul Haleem wrote: > On Wed, 2017-03-08 at 08:17 -0500, Brian Foster wrote: > > On Tue, Mar 07, 2017 at 10:01:04PM +0530, Abdul Haleem wrote: > > > > > > Hi, > > > > > > Today's mainlin

Re: 4.11.0-rc1 boot resulted in WARNING: CPU: 14 PID: 1722 at fs/sysfs/dir.c:31 .sysfs_warn_dup+0x78/0xb0

2017-03-08 Thread Brian Foster
On Tue, Mar 07, 2017 at 10:01:04PM +0530, Abdul Haleem wrote: > > Hi, > > Today's mainline (4.11.0-rc1) booted with warnings on Power7 LPAR. > > Issue is not reproducible all the time. > > traces: > > Found device VDASD 5. > Mounting /home... > Reached target Swap. > Found device VDASD

Re: [PATCH 1/2] xfs: allow kmem_zalloc_greedy to fail

2017-03-02 Thread Brian Foster
ioctl+0xa7/0x5e0 > SyS_ioctl+0x79/0x90 > do_syscall_64+0x67/0x180 > entry_SYSCALL64_slow_path+0x25/0x25 > > fsstress keeps looping inside kmem_zalloc_greedy without any way out > because vmalloc keeps failing due to fatal_signal_pending. > > Reported-by: Xiong Zhou

Re: [PATCH 2/2] xfs: back off from kmem_zalloc_greedy if the task is killed

2017-03-02 Thread Brian Foster
nt implementation of > vmalloc will fail anyway. > > Suggested-by: Brian Foster > Signed-off-by: Michal Hocko > --- Reviewed-by: Brian Foster > fs/xfs/kmem.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/xfs/kmem.c b/fs/xfs/kmem.c >

Re: mm allocation failure and hang when running xfstests generic/269 on xfs

2017-03-02 Thread Brian Foster
On Thu, Mar 02, 2017 at 04:14:11PM +0100, Michal Hocko wrote: > On Thu 02-03-17 09:51:31, Brian Foster wrote: > > On Thu, Mar 02, 2017 at 03:34:41PM +0100, Michal Hocko wrote: > > > On Thu 02-03-17 09:23:15, Brian Foster wrote: > > > > On Thu, Mar 02, 2017 at 02:50:

Re: mm allocation failure and hang when running xfstests generic/269 on xfs

2017-03-02 Thread Brian Foster
On Thu, Mar 02, 2017 at 02:50:01PM +0100, Michal Hocko wrote: > On Thu 02-03-17 08:41:58, Brian Foster wrote: > > On Thu, Mar 02, 2017 at 02:27:55PM +0100, Michal Hocko wrote: > [...] > > > I see your argument about being in sync with other kmem helpers but > > > t

Re: mm allocation failure and hang when running xfstests generic/269 on xfs

2017-03-02 Thread Brian Foster
On Thu, Mar 02, 2017 at 03:34:41PM +0100, Michal Hocko wrote: > On Thu 02-03-17 09:23:15, Brian Foster wrote: > > On Thu, Mar 02, 2017 at 02:50:01PM +0100, Michal Hocko wrote: > > > On Thu 02-03-17 08:41:58, Brian Foster wrote: > > > > On Thu, Mar 02, 2017 at 02:27:

Re: mm allocation failure and hang when running xfstests generic/269 on xfs

2017-03-02 Thread Brian Foster
On Thu, Mar 02, 2017 at 01:49:09PM +0100, Michal Hocko wrote: > On Thu 02-03-17 07:24:27, Brian Foster wrote: > > On Thu, Mar 02, 2017 at 11:35:20AM +0100, Michal Hocko wrote: > > > On Thu 02-03-17 19:04:48, Tetsuo Handa wrote: > > > [...] > > > > So, com

Re: mm allocation failure and hang when running xfstests generic/269 on xfs

2017-03-02 Thread Brian Foster
On Thu, Mar 02, 2017 at 02:27:55PM +0100, Michal Hocko wrote: > On Thu 02-03-17 08:00:09, Brian Foster wrote: > > On Thu, Mar 02, 2017 at 01:49:09PM +0100, Michal Hocko wrote: > > > On Thu 02-03-17 07:24:27, Brian Foster wrote: > > > > On Thu, Mar 02, 2017 at 11:35:

Re: mm allocation failure and hang when running xfstests generic/269 on xfs

2017-03-02 Thread Brian Foster
On Thu, Mar 02, 2017 at 11:35:20AM +0100, Michal Hocko wrote: > On Thu 02-03-17 19:04:48, Tetsuo Handa wrote: > [...] > > So, commit 5d17a73a2ebeb8d1("vmalloc: back off when the current task is > > killed") implemented __GFP_KILLABLE flag and automatically applied that > > flag. As a result, those

Re: LTP write03 writev07 xfs failures

2017-02-28 Thread Brian Foster
On Tue, Feb 28, 2017 at 07:11:35AM -0800, Christoph Hellwig wrote: > On Tue, Feb 28, 2017 at 09:59:40AM -0500, Brian Foster wrote: > > Heh. I've appended what I'm currently playing around with. It's > > certainly uglier, but not terrible IMO (outside of the fact t

Re: LTP write03 writev07 xfs failures

2017-02-28 Thread Brian Foster
On Tue, Feb 28, 2017 at 06:04:55AM -0800, Christoph Hellwig wrote: > On Mon, Feb 27, 2017 at 03:13:35PM -0500, Brian Foster wrote: > > After playing around a bit, I don't think using i_size is the right > > approach either. It just exacerbates the original problem on buff

Re: LTP write03 writev07 xfs failures

2017-02-27 Thread Brian Foster
On Mon, Feb 27, 2017 at 11:09:01AM -0500, Brian Foster wrote: > cc Christoph > > On Mon, Feb 27, 2017 at 12:22:20PM +0800, Xiong Zhou wrote: > > Hi, > > > > These 2 tests PASS on Linus tree commit: > > 37c8596 Merge tag 'tty-4.11-rc1' of git://git.ker

Re: LTP write03 writev07 xfs failures

2017-02-27 Thread Brian Foster
cc Christoph On Mon, Feb 27, 2017 at 12:22:20PM +0800, Xiong Zhou wrote: > Hi, > > These 2 tests PASS on Linus tree commit: > 37c8596 Merge tag 'tty-4.11-rc1' of git://git.kernel.org/pub/scm/linux... > FAIL on commit: > 60e8d3e Merge tag 'pci-v4.11-changes' of git://git.kernel.org/pub/scm/...

Re: [PATCH 3/7] fs, xfs: convert xfs_buf_log_item.bli_refcount from atomic_t to refcount_t

2017-02-21 Thread Brian Foster
On Tue, Feb 21, 2017 at 09:06:20AM -0800, Darrick J. Wong wrote: > On Tue, Feb 21, 2017 at 04:06:30PM +, Reshetova, Elena wrote: > > > On Tue, Feb 21, 2017 at 05:49:03PM +0200, Elena Reshetova wrote: > > > > refcount_t type and corresponding API should be > > > > used instead of atomic_t when t

Re: [RFC PATCH 1/2] mm, vmscan: account the number of isolated pages per zone

2017-02-07 Thread Brian Foster
On Tue, Feb 07, 2017 at 07:30:54PM +0900, Tetsuo Handa wrote: > Brian Foster wrote: > > > The workload is to write to a single file on XFS from 10 processes > > > demonstrated at > > > http://lkml.kernel.org/r/201512052133.iae00551.lsoqftmffvo...@i-love.sakura.ne.jp

Re: [RFC PATCH 1/2] mm, vmscan: account the number of isolated pages per zone

2017-02-06 Thread Brian Foster
On Mon, Feb 06, 2017 at 03:42:22PM +0100, Michal Hocko wrote: > On Mon 06-02-17 09:35:33, Brian Foster wrote: > > On Mon, Feb 06, 2017 at 03:29:24PM +0900, Tetsuo Handa wrote: > > > Brian Foster wrote: > > > > On Fri, Feb 03, 2017 at 03:50:09PM +0100, Michal Hocko w

Re: [RFC PATCH 1/2] mm, vmscan: account the number of isolated pages per zone

2017-02-06 Thread Brian Foster
On Mon, Feb 06, 2017 at 03:29:24PM +0900, Tetsuo Handa wrote: > Brian Foster wrote: > > On Fri, Feb 03, 2017 at 03:50:09PM +0100, Michal Hocko wrote: > > > [Let's CC more xfs people] > > > > > > On Fri 03-02-17 19:57:39, Tetsuo Handa wrote: > >

Re: [RFC PATCH 1/2] mm, vmscan: account the number of isolated pages per zone

2017-02-03 Thread Brian Foster
On Fri, Feb 03, 2017 at 03:50:09PM +0100, Michal Hocko wrote: > [Let's CC more xfs people] > > On Fri 03-02-17 19:57:39, Tetsuo Handa wrote: > [...] > > (1) I got an assertion failure. > > I suspect this is a result of > http://lkml.kernel.org/r/20170201092706.9966-2-mho...@kernel.org > I have no

Re: [PATCH 4/8] xfs: use memalloc_nofs_{save,restore} instead of memalloc_noio*

2017-01-09 Thread Brian Foster
here - implicit GFP_NOFS context. > > Changes since v1 > - s@memalloc_noio_restore@memalloc_nofs_restore@ in _xfs_buf_map_pages > as per Brian Foster > > Signed-off-by: Michal Hocko > --- Looks fine to me: Reviewed-by: Brian Foster > fs/xfs/kmem.c| 10 +-

Re: [PATCH 5/9] xfs: use memalloc_nofs_{save,restore} instead of memalloc_noio*

2016-12-16 Thread Brian Foster
On Thu, Dec 15, 2016 at 03:07:11PM +0100, Michal Hocko wrote: > From: Michal Hocko > > kmem_zalloc_large and _xfs_buf_map_pages use memalloc_noio_{save,restore} > API to prevent from reclaim recursion into the fs because vmalloc can > invoke unconditional GFP_KERNEL allocations and these function

Re: [PATCH 3/9] xfs: abstract PF_FSTRANS to PF_MEMALLOC_NOFS

2016-12-16 Thread Brian Foster
in the first > step before we introduce a full API for it as xfs uses the flag directly > anyway. > > This patch doesn't introduce any functional change. > > Signed-off-by: Michal Hocko > --- Otherwise seems fine to me: Reviewed-by: Brian Foster > fs/xfs/kmem

Re: [PATCH 2/9 v2] xfs: introduce and use KM_NOLOCKDEP to silence reclaim lockdep false positives

2016-12-16 Thread Brian Foster
On Fri, Dec 16, 2016 at 04:40:41PM +0100, Michal Hocko wrote: > Updated patch after Mike noticed a BUG_ON when KM_NOLOCKDEP is used. > --- > From 1497e713e11639157aef21cae29052cb3dc7ab44 Mon Sep 17 00:00:00 2001 > From: Michal Hocko > Date: Thu, 15 Dec 2016 13:06:43 +0100 > Subject: [PATCH] xfs: i

Re: [PATCH] xfs: idle aild if the AIL is pushed up to the target LSN

2016-04-25 Thread Brian Foster
On Mon, Apr 25, 2016 at 09:42:43AM +0200, Lucas Stach wrote: > The current logic only idles aild if the AIL is empty, rescheduling > the worker with a timeout of 50ms otherwise. If the target LSN isn't > moved forward, the worker will not make any progress as it only > pushes the AIL up to the targ

Re: [PATCH 3/3] block: implement (some of) fallocate for block devices

2016-03-21 Thread Brian Foster
On Mon, Mar 21, 2016 at 03:22:29PM -0400, Mike Snitzer wrote: > On Mon, Mar 21 2016 at 3:11pm -0400, > Darrick J. Wong wrote: > > > On Mon, Mar 21, 2016 at 02:52:00PM -0400, Mike Snitzer wrote: > > > On Tue, Mar 15, 2016 at 3:42 PM, Darrick J. Wong > > > wrote: > > > > After much discussion, it

Re: [PATCH] xfs: fix format specifier , should be %llx and not %llu

2016-02-15 Thread Brian Foster
fs/xfs/xfs_discard.c:229 xfs_discard_extents() warn: '0x' > prefix is confusing together with '%llu' specifier > > Signed-off-by: Colin Ian King > --- Reviewed-by: Brian Foster > fs/xfs/xfs_discard.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [PATCH] xfs/xfs_buf: make xfs_buf_ioend_async() static

2015-11-30 Thread Brian Foster
On Fri, Nov 27, 2015 at 11:52:29PM +0600, Alexander Kuleshov wrote: > There are no callers of the xfs_buf_ioend_async() function outside > of the fs/xfs/xfs_buf.c. So, let's make it static. > > Signed-off-by: Alexander Kuleshov > --- Reviewed-by: Brian Foster > fs/xf

Re: [RFC PATCH] xfs: support for non-mmu architectures

2015-11-23 Thread Brian Foster
On Mon, Nov 23, 2015 at 09:04:00AM +1100, Dave Chinner wrote: > On Fri, Nov 20, 2015 at 05:47:34PM -0500, Brian Foster wrote: > > On Sat, Nov 21, 2015 at 07:36:02AM +1100, Dave Chinner wrote: > > > On Fri, Nov 20, 2015 at 10:11:19AM -0500, Brian Foster wrote: > > > >

Re: [RFC PATCH] xfs: support for non-mmu architectures

2015-11-20 Thread Brian Foster
On Sat, Nov 21, 2015 at 07:36:02AM +1100, Dave Chinner wrote: > On Fri, Nov 20, 2015 at 10:11:19AM -0500, Brian Foster wrote: > > On Fri, Nov 20, 2015 at 10:35:47AM +1100, Dave Chinner wrote: > > > On Thu, Nov 19, 2015 at 10:55:25AM -0500, Brian Foster wrote: > > > >

Re: [RFC PATCH] xfs: support for non-mmu architectures

2015-11-20 Thread Brian Foster
On Fri, Nov 20, 2015 at 05:31:59PM +0200, Octavian Purdila wrote: > On Fri, Nov 20, 2015 at 5:24 PM, Brian Foster wrote: > > On Fri, Nov 20, 2015 at 04:26:28PM +0200, Octavian Purdila wrote: > >> On Fri, Nov 20, 2015 at 2:58 AM, Dave Chinner wrote: > >> > On Fri, No

Re: [RFC PATCH] xfs: support for non-mmu architectures

2015-11-20 Thread Brian Foster
On Fri, Nov 20, 2015 at 05:35:55PM +0200, Octavian Purdila wrote: > On Fri, Nov 20, 2015 at 5:11 PM, Brian Foster wrote: > > On Fri, Nov 20, 2015 at 10:35:47AM +1100, Dave Chinner wrote: > >> On Thu, Nov 19, 2015 at 10:55:25AM -0500, Brian Foster wrote: > >> > On W

Re: [RFC PATCH] xfs: support for non-mmu architectures

2015-11-20 Thread Brian Foster
On Fri, Nov 20, 2015 at 04:26:28PM +0200, Octavian Purdila wrote: > On Fri, Nov 20, 2015 at 2:58 AM, Dave Chinner wrote: > > On Fri, Nov 20, 2015 at 12:54:02AM +0100, Richard Weinberger wrote: > >> On Fri, Nov 20, 2015 at 12:24 AM, Dave Chinner wrote: > >> > On Wed, Nov 18, 2015 at 12:46:21AM +02

Re: [RFC PATCH] xfs: support for non-mmu architectures

2015-11-20 Thread Brian Foster
On Thu, Nov 19, 2015 at 10:54:34PM +0200, Octavian Purdila wrote: > On Thu, Nov 19, 2015 at 5:55 PM, Brian Foster wrote: > > On Wed, Nov 18, 2015 at 12:46:21AM +0200, Octavian Purdila wrote: > >> Naive implementation for non-mmu architectures: allocate physically > >>

Re: [RFC PATCH] xfs: support for non-mmu architectures

2015-11-20 Thread Brian Foster
On Fri, Nov 20, 2015 at 10:35:47AM +1100, Dave Chinner wrote: > On Thu, Nov 19, 2015 at 10:55:25AM -0500, Brian Foster wrote: > > On Wed, Nov 18, 2015 at 12:46:21AM +0200, Octavian Purdila wrote: > > > Naive implementation for non-mmu architectures: allocate physically > >

Re: [RFC PATCH] xfs: support for non-mmu architectures

2015-11-19 Thread Brian Foster
On Wed, Nov 18, 2015 at 12:46:21AM +0200, Octavian Purdila wrote: > Naive implementation for non-mmu architectures: allocate physically > contiguous xfs buffers with alloc_pages. Terribly inefficient with > memory and fragmentation on high I/O loads but it may be good enough > for basic usage (whic

Re: [lkp] [xfs] a45086e27d: -100.0% xfstests.xfs.033.seconds

2015-11-18 Thread Brian Foster
cc linux-xfs On Wed, Nov 18, 2015 at 02:57:21PM +0800, kernel test robot wrote: > FYI, we noticed the below changes on > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > commit a45086e27dfa21a4b39134f7505c8f60a3ecdec4 ("xfs: validate metadata LSNs > against log on v5

Re: [PATCH] xfs: clear PF_NOFREEZE for xfsaild kthread

2015-10-26 Thread Brian Foster
_freeze() will never do > anything. > > Before (hopefully eventually) kthread freezing gets converted to fileystem > freezing, we'd rather mark xfsaild freezable (as it can generate I/O > during suspend). > > Signed-off-by: Jiri Kosina > --- Looks fine to me: Revi

Re: [PATCH] xfs: constify sysfs_ops structures

2015-10-12 Thread Brian Foster
On Sun, Oct 11, 2015 at 12:42:26PM +0200, Julia Lawall wrote: > These sysfs_ops structures are never modified. All other sysfs_ops > structures in the kernel are declared as const. > > Done with the help of Coccinelle. > > Signed-off-by: Julia Lawall > The fix looks correct, but these data st

  1   2   >