Reapply "netfilter: ipset: Fix race between IPSET_CMD_CREATE and IPSET_CMD_SWAP"

This reverts commit 6c2e2d34f46dcedf0bdd62adc5ae1c19a9d07d81.

BUG=b/303207275
TEST=presubmit
RELEASE_NOTE=None

cos-patch: bug
Change-Id: I2c92eb3f8c7773471207aff2d51815ba55914776
Reviewed-on: https://cos-review.googlesource.com/c/third_party/kernel/+/59058
Tested-by: Cusky Presubmit Bot <presubmit@cos-infra-prod.iam.gserviceaccount.com>
Reviewed-by: Oleksandr Tymoshenko <ovt@google.com>
Reviewed-by: Chenglong Tang <chenglongtang@google.com>
1 file changed