* Re: [GIT PULL] afs, rxrpc: Clean up refcounting on afs_cell and afs_server records
2025-02-28 8:58 [GIT PULL] afs, rxrpc: Clean up refcounting on afs_cell and afs_server records David Howells
@ 2025-02-28 10:31 ` Christian Brauner
2025-02-28 14:22 ` Jakub Kicinski
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Christian Brauner @ 2025-02-28 10:31 UTC (permalink / raw)
To: David Howells
Cc: Christian Brauner, Marc Dionne, Jakub Kicinski, David S. Miller,
Eric Dumazet, Paolo Abeni, linux-afs, linux-fsdevel, netdev,
linux-kernel
On Fri, 28 Feb 2025 08:58:39 +0000, David Howells wrote:
> Could you pull this into the VFS tree onto a stable branch? The patches
> were previously posted here as part of a longer series:
>
> https://lore.kernel.org/r/20250224234154.2014840-1-dhowells@redhat.com/
>
> The first five patches are fixes that have gone through the net tree to
> Linus and hence this patchset is based on the latest merge by Linus and
> I've dropped those from my branch.
>
> [...]
Pulled into the vfs-6.15.shared.afs branch of the vfs/vfs.git tree.
Patches in the vfs-6.15.shared.afs branch should appear in linux-next soon.
Please report any outstanding bugs that were missed during review in a
new review to the original patch series or pull request allowing us to
drop it.
It's encouraged to provide Acked-bys and Reviewed-bys even though the
patch has now been applied. If possible patch trailers will be updated.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git
branch: vfs-6.15.shared.afs
https://git.kernel.org/vfs/vfs/c/d0710fad7ac3
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [GIT PULL] afs, rxrpc: Clean up refcounting on afs_cell and afs_server records
2025-02-28 8:58 [GIT PULL] afs, rxrpc: Clean up refcounting on afs_cell and afs_server records David Howells
2025-02-28 10:31 ` Christian Brauner
@ 2025-02-28 14:22 ` Jakub Kicinski
2025-02-28 14:33 ` David Howells
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Jakub Kicinski @ 2025-02-28 14:22 UTC (permalink / raw)
To: David Howells
Cc: Christian Brauner, Marc Dionne, David S. Miller, Eric Dumazet,
Paolo Abeni, linux-afs, linux-fsdevel, netdev, linux-kernel
On Fri, 28 Feb 2025 08:58:39 +0000 David Howells wrote:
> Could you pull this into the VFS tree onto a stable branch? The patches
> were previously posted here as part of a longer series:
>
> https://lore.kernel.org/r/20250224234154.2014840-1-dhowells@redhat.com/
>
> The first five patches are fixes that have gone through the net tree to
> Linus and hence this patchset is based on the latest merge by Linus and
> I've dropped those from my branch.
FWIW:
fs/afs/cell.c:203:5-22: WARNING: Unsigned expression compared with zero: cell -> dynroot_ino < 0
--
pw-bot: nap
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [GIT PULL] afs, rxrpc: Clean up refcounting on afs_cell and afs_server records
2025-02-28 8:58 [GIT PULL] afs, rxrpc: Clean up refcounting on afs_cell and afs_server records David Howells
2025-02-28 10:31 ` Christian Brauner
2025-02-28 14:22 ` Jakub Kicinski
@ 2025-02-28 14:33 ` David Howells
2025-02-28 14:45 ` David Howells
2025-03-01 13:23 ` David Howells
4 siblings, 0 replies; 6+ messages in thread
From: David Howells @ 2025-02-28 14:33 UTC (permalink / raw)
To: Jakub Kicinski
Cc: dhowells, Christian Brauner, Marc Dionne, David S. Miller,
Eric Dumazet, Paolo Abeni, linux-afs, linux-fsdevel, netdev,
linux-kernel
Jakub Kicinski <kuba@kernel.org> wrote:
> fs/afs/cell.c:203:5-22: WARNING: Unsigned expression compared with zero: cell -> dynroot_ino < 0
Yeah, thanks - error handling bug. I can retag it and ask Christian to pull
it again. (unless he'd rather stack a fix patch)
David
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [GIT PULL] afs, rxrpc: Clean up refcounting on afs_cell and afs_server records
2025-02-28 8:58 [GIT PULL] afs, rxrpc: Clean up refcounting on afs_cell and afs_server records David Howells
` (2 preceding siblings ...)
2025-02-28 14:33 ` David Howells
@ 2025-02-28 14:45 ` David Howells
2025-03-01 13:23 ` David Howells
4 siblings, 0 replies; 6+ messages in thread
From: David Howells @ 2025-02-28 14:45 UTC (permalink / raw)
To: Jakub Kicinski
Cc: dhowells, Christian Brauner, Marc Dionne, David S. Miller,
Eric Dumazet, Paolo Abeni, linux-afs, linux-fsdevel, netdev,
linux-kernel
Jakub Kicinski <kuba@kernel.org> wrote:
> fs/afs/cell.c:203:5-22: WARNING: Unsigned expression compared with zero: cell -> dynroot_ino < 0
I'll make this change:
--- a/fs/afs/cell.c
+++ b/fs/afs/cell.c
@@ -200,7 +200,7 @@ static struct afs_cell *afs_alloc_cell(struct afs_net *net,
atomic_inc(&net->cells_outstanding);
cell->dynroot_ino = idr_alloc_cyclic(&net->cells_dyn_ino, cell,
2, INT_MAX / 2, GFP_KERNEL);
- if (cell->dynroot_ino < 0)
+ if ((int)cell->dynroot_ino < 0)
goto error;
cell->debug_id = atomic_inc_return(&cell_debug_id);
to patch 2 ("afs: Change dynroot to create contents on demand").
I'm not sure why gcc didn't warn about this - I'm sure it used to.
David
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [GIT PULL] afs, rxrpc: Clean up refcounting on afs_cell and afs_server records
2025-02-28 8:58 [GIT PULL] afs, rxrpc: Clean up refcounting on afs_cell and afs_server records David Howells
` (3 preceding siblings ...)
2025-02-28 14:45 ` David Howells
@ 2025-03-01 13:23 ` David Howells
4 siblings, 0 replies; 6+ messages in thread
From: David Howells @ 2025-03-01 13:23 UTC (permalink / raw)
Cc: dhowells, Jakub Kicinski, Christian Brauner, Marc Dionne,
David S. Miller, Eric Dumazet, Paolo Abeni, linux-afs,
linux-fsdevel, netdev, linux-kernel
David Howells <dhowells@redhat.com> wrote:
> cell->dynroot_ino = idr_alloc_cyclic(&net->cells_dyn_ino, cell,
> 2, INT_MAX / 2, GFP_KERNEL);
> - if (cell->dynroot_ino < 0)
> + if ((int)cell->dynroot_ino < 0)
> goto error;
That's not right. I need to copy the error into 'ret' before jumping to
error. Probably better to do:
ret = idr_alloc_cyclic(&net->cells_dyn_ino, cell,
2, INT_MAX / 2, GFP_KERNEL);
if (ret < 0)
goto error;
cell->dynroot_ino = ret;
David
^ permalink raw reply [flat|nested] 6+ messages in thread