Commit 127f497
net/smc: release clcsock from tcp_listen_worker
Closing a listen socket may hit the warning
WARN_ON(sock_owned_by_user(sk)) of tcp_close(), if the wake up of
the smc_tcp_listen_worker has not yet finished.
This patch introduces smc_close_wait_listen_clcsock() making sure
the listening internal clcsock has been closed in smc_tcp_listen_work(),
before the listening external SMC socket finishes closing.
Signed-off-by: Ursula Braun <ubraun@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 51f1de7 commit 127f497
2 files changed
+36
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
670 | 670 | | |
671 | 671 | | |
672 | 672 | | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
673 | 677 | | |
674 | 678 | | |
675 | 679 | | |
| |||
969 | 973 | | |
970 | 974 | | |
971 | 975 | | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
972 | 980 | | |
973 | | - | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
974 | 985 | | |
975 | 986 | | |
976 | 987 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
| |||
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
31 | 54 | | |
32 | 55 | | |
33 | 56 | | |
| |||
114 | 137 | | |
115 | 138 | | |
116 | 139 | | |
117 | | - | |
118 | 140 | | |
119 | 141 | | |
120 | 142 | | |
| |||
128 | 150 | | |
129 | 151 | | |
130 | 152 | | |
131 | | - | |
132 | 153 | | |
133 | 154 | | |
134 | 155 | | |
135 | 156 | | |
136 | 157 | | |
137 | 158 | | |
138 | 159 | | |
139 | | - | |
140 | | - | |
141 | 160 | | |
142 | 161 | | |
143 | 162 | | |
| |||
177 | 196 | | |
178 | 197 | | |
179 | 198 | | |
180 | | - | |
181 | | - | |
182 | 199 | | |
183 | 200 | | |
184 | 201 | | |
| |||
187 | 204 | | |
188 | 205 | | |
189 | 206 | | |
| 207 | + | |
190 | 208 | | |
191 | | - | |
192 | 209 | | |
193 | | - | |
194 | | - | |
195 | 210 | | |
196 | 211 | | |
197 | 212 | | |
| |||
0 commit comments