Re: [Cluster-devel] Why does dlm_lock function fails when downconvert a dlm lock?

2021-08-11 Thread Alexander Aring
Hi, On Wed, Aug 11, 2021 at 6:41 AM Gang He wrote: > > Hello List, > > I am using kernel 5.13.4 (some old version kernels have the same problem). > When node A acquired a dlm (EX) lock, node B tried to get the dlm lock, node > A got a BAST message, > then node A downcoverted the dlm lock to NL,

[Cluster-devel] [PATCH 31/30] iomap: move iomap iteration code to iter.c

2021-08-11 Thread Darrick J. Wong
From: Darrick J. Wong Now that we've moved iomap to the iterator model, rename this file to be in sync with the functions contained inside of it. Signed-off-by: Darrick J. Wong --- fs/iomap/Makefile |2 +- fs/iomap/iter.c |0 2 files changed, 1 insertion(+), 1 deletion(-) rename

[Cluster-devel] [PATCH v2.1 24/30] iomap: remove iomap_apply

2021-08-11 Thread Darrick J. Wong
From: Christoph Hellwig iomap_apply is unused now, so remove it. Signed-off-by: Christoph Hellwig [djwong: rebase this patch to preserve git history of iomap loop control] Reviewed-by: Darrick J. Wong Signed-off-by: Darrick J. Wong --- fs/iomap/apply.c | 91

[Cluster-devel] [PATCH v2.1 11/30] iomap: add the new iomap_iter model

2021-08-11 Thread Darrick J. Wong
From: Christoph Hellwig The iomap_iter struct provides a convenient way to package up and maintain all the arguments to the various mapping and operation functions. It is operated on using the iomap_iter() function that is called in loop until the whole range has been processed. Compared to

Re: [Cluster-devel] [PATCH 11/30] iomap: add the new iomap_iter model

2021-08-11 Thread Darrick J. Wong
On Wed, Aug 11, 2021 at 07:38:56AM +0200, Christoph Hellwig wrote: > On Tue, Aug 10, 2021 at 05:31:18PM -0700, Darrick J. Wong wrote: > > > +static inline void iomap_iter_done(struct iomap_iter *iter) > > > > I wonder why this is a separate function, since it only has debugging > > warnings and

[Cluster-devel] [PATCH v2.1 19/30] iomap: switch iomap_bmap to use iomap_iter

2021-08-11 Thread Darrick J. Wong
From: Christoph Hellwig Rewrite the ->bmap implementation based on iomap_iter. Signed-off-by: Christoph Hellwig [djwong: restructure the loop to make its behavior a little clearer] Reviewed-by: Darrick J. Wong Signed-off-by: Darrick J. Wong --- fs/iomap/fiemap.c | 31

[Cluster-devel] Why does dlm_lock function fails when downconvert a dlm lock?

2021-08-11 Thread Gang He
Hello List, I am using kernel 5.13.4 (some old version kernels have the same problem). When node A acquired a dlm (EX) lock, node B tried to get the dlm lock, node A got a BAST message, then node A downcoverted the dlm lock to NL, dlm_lock function failed with the error -16. The function