OSDN Git Service

genetlink: push conditional locking into dumpit/done
authorJakub Kicinski <kuba@kernel.org>
Mon, 14 Aug 2023 21:47:14 +0000 (14:47 -0700)
committerJakub Kicinski <kuba@kernel.org>
Tue, 15 Aug 2023 21:54:44 +0000 (14:54 -0700)
commit84817d8c6042e6261ea45c53fe8b5a0bd55c3993
treeef5743f845054913133ee0bc1ed5d07487198511
parent479b322ee6feaff612285a0e7f22c022e8cd84eb
genetlink: push conditional locking into dumpit/done

Add helpers which take/release the genl mutex based
on family->parallel_ops. Remove the separation between
handling of ops in locked and parallel families.

Future patches would make the duplicated code grow even more.

Reviewed-by: Johannes Berg <johannes@sipsolutions.net>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Link: https://lore.kernel.org/r/20230814214723.2924989-2-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/netlink/genetlink.c