summaryrefslogtreecommitdiff
path: root/.clang-format
diff options
context:
space:
mode:
authorMaxime Chevallier <maxime.chevallier@bootlin.com>2021-10-28 16:18:04 +0300
committerDavid S. Miller <davem@davemloft.net>2021-10-28 16:36:41 +0300
commitee046d9a22a4110fcf14cefa7536c265d0e6f174 (patch)
treea4e806cc1cf97cfe48b0f4aa9ef3965559e00ec5 /.clang-format
parent442e796f0aa755ea2a9e3d2f007a6bfcf08bb183 (diff)
downloadlinux-ee046d9a22a4110fcf14cefa7536c265d0e6f174.tar.xz
net: ipconfig: Release the rtnl_lock while waiting for carrier
While waiting for a carrier to come on one of the netdevices, some devices will require to take the rtnl lock at some point to fully initialize all parts of the link. That's the case for SFP, where the rtnl is taken when a module gets detected. This prevents mounting an NFS rootfs over an SFP link. This means that while ipconfig waits for carriers to be detected, no SFP modules can be detected in the meantime, it's only detected after ipconfig times out. This commit releases the rtnl_lock while waiting for the carrier to come up, and re-takes it to check the for the init device and carrier status. Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '.clang-format')
0 files changed, 0 insertions, 0 deletions