]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
IB/IPoIB: ibX: failed to create mcg debug file
authorShamir Rabinovitch <shamir.rabinovitch@oracle.com>
Wed, 29 Mar 2017 10:21:59 +0000 (06:21 -0400)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 20 Jun 2017 08:50:29 +0000 (10:50 +0200)
commitd13f0df04fe6607110b3fcd817bec25d168d5418
tree8fec325908c236eb621f0d0f25d10ea1eb40c336
parent616601b07552df9676e14a2ad6189700f57fd215
IB/IPoIB: ibX: failed to create mcg debug file

BugLink: http://bugs.launchpad.net/bugs/1692898
commit 771a52584096c45e4565e8aabb596eece9d73d61 upstream.

When udev renames the netdev devices, ipoib debugfs entries does not
get renamed. As a result, if subsequent probe of ipoib device reuse the
name then creating a debugfs entry for the new device would fail.

Also, moved ipoib_create_debug_files and ipoib_delete_debug_files as part
of ipoib event handling in order to avoid any race condition between these.

Fixes: 1732b0ef3b3a ([IPoIB] add path record information in debugfs)
Signed-off-by: Vijay Kumar <vijay.ac.kumar@oracle.com>
Signed-off-by: Shamir Rabinovitch <shamir.rabinovitch@oracle.com>
Reviewed-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/infiniband/ulp/ipoib/ipoib_fs.c
drivers/infiniband/ulp/ipoib/ipoib_main.c
drivers/infiniband/ulp/ipoib/ipoib_vlan.c