Commit 1360f43
IB/IPoIB: ibX: failed to create mcg debug file
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: 1732b0e ([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>1 parent 1549c88 commit 1360f43
3 files changed
Lines changed: 42 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
| 284 | + | |
| 285 | + | |
284 | 286 | | |
285 | 287 | | |
| 288 | + | |
286 | 289 | | |
287 | 290 | | |
288 | 291 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
109 | 136 | | |
110 | 137 | | |
111 | 138 | | |
| |||
1595 | 1622 | | |
1596 | 1623 | | |
1597 | 1624 | | |
1598 | | - | |
1599 | | - | |
1600 | 1625 | | |
1601 | 1626 | | |
1602 | 1627 | | |
| |||
1908 | 1933 | | |
1909 | 1934 | | |
1910 | 1935 | | |
1911 | | - | |
1912 | | - | |
1913 | 1936 | | |
1914 | 1937 | | |
1915 | 1938 | | |
| |||
1924 | 1947 | | |
1925 | 1948 | | |
1926 | 1949 | | |
1927 | | - | |
1928 | 1950 | | |
1929 | 1951 | | |
1930 | 1952 | | |
| |||
2006 | 2028 | | |
2007 | 2029 | | |
2008 | 2030 | | |
| 2031 | + | |
| 2032 | + | |
| 2033 | + | |
| 2034 | + | |
| 2035 | + | |
| 2036 | + | |
2009 | 2037 | | |
2010 | 2038 | | |
2011 | 2039 | | |
| |||
2057 | 2085 | | |
2058 | 2086 | | |
2059 | 2087 | | |
| 2088 | + | |
| 2089 | + | |
| 2090 | + | |
2060 | 2091 | | |
2061 | 2092 | | |
2062 | 2093 | | |
| |||
2074 | 2105 | | |
2075 | 2106 | | |
2076 | 2107 | | |
| 2108 | + | |
| 2109 | + | |
| 2110 | + | |
2077 | 2111 | | |
2078 | 2112 | | |
2079 | 2113 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
89 | | - | |
90 | 88 | | |
91 | 89 | | |
92 | 90 | | |
| |||
107 | 105 | | |
108 | 106 | | |
109 | 107 | | |
110 | | - | |
111 | 108 | | |
112 | 109 | | |
113 | 110 | | |
| |||
0 commit comments