diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2019-09-03 07:31:04 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-09-05 10:49:49 +0300 |
commit | 3544c98acd09b3b40e86f015f7df75a7d2d72a5c (patch) | |
tree | 28245dd137ae0f93b8c081f575c67e8146f98c7e /usr | |
parent | 90962b4894f560432e5538e9a354ee708f8beb3d (diff) | |
download | linux-3544c98acd09b3b40e86f015f7df75a7d2d72a5c.tar.xz |
net/tls: narrow down the critical area of device_offload_lock
On setsockopt path we need to hold device_offload_lock from
the moment we check netdev is up until the context is fully
ready to be added to the tls_device_list.
No need to hold it around the get_netdev_for_sock().
Change the code and remove the confusing comment.
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: John Hurley <john.hurley@netronome.com>
Reviewed-by: Dirk van der Merwe <dirk.vandermerwe@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions