]> git.baikalelectronics.ru Git - kernel.git/commit
net/p9: load default transports
authorThomas Weißschuh <linux@weissschuh.net>
Wed, 3 Nov 2021 19:38:23 +0000 (20:38 +0100)
committerDominique Martinet <asmadeus@codewreck.org>
Mon, 10 Jan 2022 01:00:09 +0000 (10:00 +0900)
commit3e1a4fbd9cd53b56c34ad91875f7c87e55abc308
tree0384e69b4db92b9f20cc7bd3c8447ac6b3cfeb66
parent44878ff7b09de983a4d7a742d9f3be59e2d2f1cf
net/p9: load default transports

Now that all transports are split into modules it may happen that no
transports are registered when v9fs_get_default_trans() is called.
When that is the case try to load more transports from modules.

Link: https://lkml.kernel.org/r/20211103193823.111007-5-linux@weissschuh.net
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
[Dominique: constify v9fs_get_trans_by_name argument as per patch1v2]
Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>
include/net/9p/transport.h
net/9p/mod.c