[Cluster-devel] [PATCH dlm/next 3/3] fs: dlm: fix context imbalance warning in put_rsb()

2022-06-23 Thread Alexander Aring
This patch fixes the following sparse warning: warning: context imbalance in 'put_rsb' - unexpected unlock it does this by unlock the ls_rsbtbl[bucket].lock lock inside of the release functionality of kref_put_lock() and do a __releases() annotation at the release function. Signed-off-by:

[Cluster-devel] [PATCH dlm/next 1/3] fs: dlm: move assert into release function

2022-06-23 Thread Alexander Aring
This patch moves the assert if unhold_lkb() hits lkb->lkb_ref zero into the release function. Instead of kill_lkb() which has an assert if lkb->lkb_status is non-zero. The assert in kill_lkb() has nothing todo with unhold a lkb and probably was only used here to call something if it it's zero. The

[Cluster-devel] [PATCH dlm/next 2/3] fs: dlm: fix context imbalance warning in __put_lkb()

2022-06-23 Thread Alexander Aring
This patch fixes the following sparse warning: warning: context imbalance in '__put_lkb' - unexpected unlock it does this by unlock the ls_lkbidr_spin lock inside of the release functionality of kref_put_lock() and do a __releases() annotation at the release function. The kref_put_lock() for

[Cluster-devel] [PATCH dlm-tool] controld: fix memory leak

2022-06-23 Thread Alexander Aring
Compile with -fsanitize=address unveils the following memory leak: ==1175==ERROR: LeakSanitizer: detected memory leaks Direct leak of 216 byte(s) in 3 object(s) allocated from: #0 0x7f0881809b17 in calloc (/lib64/libasan.so.6+0xaeb17) #1 0x55b3f110bc78 in send_protocol

Re: [Cluster-devel] Mounting lock_nolock file systems?

2022-06-23 Thread Andreas Gruenbacher
On Wed, Jun 22, 2022 at 4:32 PM Christoph Hellwig wrote: > On Tue, Jun 21, 2022 at 02:58:57PM +0200, Christoph Hellwig wrote: > > Sorry, actually it was the pagecache for-next branch from willy. Looks > > like mainline itself is fine. > > > > I'll try to get the superblock information from the

Re: [Cluster-devel] [PATCH] gfs2: Fix spelling mistake

2022-06-23 Thread Andreas Gruenbacher
On Thu, Jun 23, 2022 at 11:41 AM Zhang Jiaming wrote: > Change 'accomodate' to 'accommodate'. Applied, thanks. Andreas

[Cluster-devel] [PATCH] gfs2: Fix spelling mistake

2022-06-23 Thread Zhang Jiaming
Change 'accomodate' to 'accommodate'. Signed-off-by: Zhang Jiaming --- fs/gfs2/lock_dlm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/gfs2/lock_dlm.c b/fs/gfs2/lock_dlm.c index 2559a79cf14b..6ce369b096d4 100644 --- a/fs/gfs2/lock_dlm.c +++ b/fs/gfs2/lock_dlm.c @@