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)
committerDoug Ledford <dledford@redhat.com>
Wed, 5 Apr 2017 17:47:24 +0000 (13:47 -0400)
commit771a52584096c45e4565e8aabb596eece9d73d61
tree47115b4715c6c1c63abec88d872649163ad40607
parentcd6ce4a5737829052abc4ffc8befd0adfff8998d
IB/IPoIB: ibX: failed to create mcg debug file

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)
Cc: stable@vger.kernel.org # 2.6.15+
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>
drivers/infiniband/ulp/ipoib/ipoib_fs.c
drivers/infiniband/ulp/ipoib/ipoib_main.c
drivers/infiniband/ulp/ipoib/ipoib_vlan.c