]> git.baikalelectronics.ru Git - kernel.git/commit
IB/ipoib: Do not warn if IPoIB debugfs doesn't exist
authorAlaa Hleihel <alaa@mellanox.com>
Tue, 13 Feb 2018 10:18:27 +0000 (12:18 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 15 Feb 2018 21:59:43 +0000 (14:59 -0700)
commita265e59e71495d56f9a29b1b2f20e71f7592c95d
treeb59483f651a1e2e93912103aa50226e017bedd2e
parentae0945d7fbe5a6a5e767169d0c9ca622784b3c38
IB/ipoib: Do not warn if IPoIB debugfs doesn't exist

netdev_wait_allrefs() could rebroadcast NETDEV_UNREGISTER event
multiple times until all refs are gone, which will result in calling
ipoib_delete_debug_files multiple times and printing a warning.

Remove the WARN_ONCE since checks of NULL pointers before calling
debugfs_remove are not needed.

Fixes: 271f627acd15 ("IB/IPoIB: ibX: failed to create mcg debug file")
Signed-off-by: Alaa Hleihel <alaa@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/ulp/ipoib/ipoib_fs.c