[Cluster-devel] [GFS2 PATCH] GFS2: Made logd daemon take into account log demand

2017-01-05 Thread Bob Peterson
Hi, Before this patch, the logd daemon only tried to flush things when the log blocks pinned exceeded a certain threshold. But when we're deleting very large files, it may require a huge number of journal blocks, and that, in turn, may exceed the threshold. This patch factors that into account.

[Cluster-devel] [GFS2 PATCH v3] GFS2: Limit number of transaction blocks requested for truncates

2017-01-05 Thread Bob Peterson
Hi, On 16 December and 19 December, I posted predecessor patches for this problem. I've subsequently uncovered problems during testing, so this is a third version of the patch. It's not that the patch was buggy: the 3/4ths threshold was okay, in theory, but it uncovered another problem related

[Cluster-devel] [PATCH v1 00/54] block: support multipage bvec

2017-01-05 Thread Ming Lei
Hi, This patchset brings multipage bvec into block layer. Basic xfstests(-a auto) over virtio-blk/virtio-scsi have been run and no regression is found, so it should be good enough to show the approach now, and any comments are welcome! 1) what is multipage bvec? Multipage bvecs means that one

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

2017-01-05 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 >

[Cluster-devel] [PATCH v1 43/54] gfs2: convert to bio_for_each_segment_all_sp()

2017-01-05 Thread Ming Lei
Signed-off-by: Ming Lei --- fs/gfs2/lops.c| 3 ++- fs/gfs2/meta_io.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/fs/gfs2/lops.c b/fs/gfs2/lops.c index b1f9144b42c7..ddbd1f772cdb 100644 --- a/fs/gfs2/lops.c +++ b/fs/gfs2/lops.c @@ -208,13

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

2017-01-05 Thread Brian Foster
On Thu, Dec 15, 2016 at 03:07:09PM +0100, Michal Hocko wrote: > From: Michal Hocko > > xfs has defined PF_FSTRANS to declare a scope GFP_NOFS semantic quite > some time ago. We would like to make this concept more generic and use > it for other filesystems as well. Let's start

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

2017-01-05 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

Re: [Cluster-devel] [PATCH 0/9 v2] scope GFP_NOFS api

2017-01-05 Thread Mike Galbraith
On Thu, 2016-12-15 at 15:07 +0100, Michal Hocko wrote: > Hi, > I have posted the previous version here [1]. Since then I have added a > support to suppress reclaim lockdep warnings (__GFP_NOLOCKDEP) to allow > removing GFP_NOFS usage motivated by the lockdep false positives. On top > of that I've

Re: [Cluster-devel] [PATCH 0/9 v2] scope GFP_NOFS api

2017-01-05 Thread Mike Galbraith
On Fri, 2016-12-16 at 16:35 +0100, Michal Hocko wrote: > On Fri 16-12-16 16:05:58, Mike Galbraith wrote: > > On Thu, 2016-12-15 at 15:07 +0100, Michal Hocko wrote: > > > Hi, > > > I have posted the previous version here [1]. Since then I have added a > > > support to suppress reclaim lockdep

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

2017-01-05 Thread Darrick J. Wong
On Tue, Dec 20, 2016 at 08:24:13AM +1100, Dave Chinner wrote: > On Thu, Dec 15, 2016 at 03:07:08PM +0100, Michal Hocko wrote: > > From: Michal Hocko > > > > Now that the page allocator offers __GFP_NOLOCKDEP let's introduce > > KM_NOLOCKDEP alias for the xfs allocation APIs.