]> git.baikalelectronics.ru Git - kernel.git/commit
9p: roll p9_tag_remove into p9_req_put
authorDominique Martinet <asmadeus@codewreck.org>
Tue, 12 Jul 2022 06:09:35 +0000 (15:09 +0900)
committerDominique Martinet <asmadeus@codewreck.org>
Fri, 15 Jul 2022 11:22:09 +0000 (20:22 +0900)
commita6f94c3a7c4847815cd848494b15c872562d4f8c
tree02c1b23575f3d89886c4574d9309917ec2af68b9
parentdef3fb7d83b59d783b91115d9421552c460e89cb
9p: roll p9_tag_remove into p9_req_put

mempool prep commit removed the awkward kref usage which didn't
allow passing client pointer easily with the ref, so we no longer
need a separate function to remove the tag from idr.

This has the side benefit that it should be more robust in detecting
leaks: umount will now properly catch unfreed requests as they still
will be in the idr until the last ref is dropped

Link: https://lkml.kernel.org/r/20220712060801.2487140-1-asmadeus@codewreck.org
Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>
Reviewed-by: Christian Schoenebeck <linux_oss@crudebyte.com>
net/9p/client.c