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:
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
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
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
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
On Thu, Jun 23, 2022 at 11:41 AM Zhang Jiaming wrote:
> Change 'accomodate' to 'accommodate'.
Applied, thanks.
Andreas
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
@@