Commit faae19b
scsi: bnx2fc: Fix hung task messages when a cleanup response is not received during abort
If a cleanup task is not responded to while we are in bnx2fc_abts_cleanup, it
will hang the SCSI error handler since we use wait_for_completion instead of
wait_for_completion_timeout. So, use wait_for_completion_timeout so that we
don't hang the SCSI error handler thread forever.
Fixes the call trace:
[183373.131468] INFO: task scsi_eh_16:110146 blocked for more than 120 seconds.
[183373.131469] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[183373.131470] scsi_eh_16 D ffff88103f2fca14 0 110146 2 0x00000080
[183373.131472] ffff880855e77cb0 0000000000000046 ffff881050654e70 ffff880855e77fd8
[183373.131474] ffff880855e77fd8 ffff880855e77fd8 ffff881050654e70 ffff88103f2fcb48
[183373.131475] ffff88103f2fcb50 7fffffffffffffff ffff881050654e70 ffff88103f2fca14
[183373.131477] Call Trace:
[183373.131479] [<ffffffff8168b579>] schedule+0x29/0x70
[183373.131481] [<ffffffff81688fc9>] schedule_timeout+0x239/0x2d0
[183373.131486] [<ffffffff8142821e>] ? __dev_printk+0x3e/0x90
[183373.131487] [<ffffffff814282cd>] ? dev_printk+0x5d/0x80
[183373.131490] [<ffffffff8168b956>] wait_for_completion+0x116/0x170
[183373.131492] [<ffffffff810c4ec0>] ? wake_up_state+0x20/0x20
[183373.131494] [<ffffffffa048c234>] bnx2fc_abts_cleanup+0x3d/0x62 [bnx2fc]
[183373.131497] [<ffffffffa0483a80>] bnx2fc_eh_abort+0x470/0x580 [bnx2fc]
[183373.131500] [<ffffffff814570af>] scsi_error_handler+0x59f/0x8b0
[183373.131501] [<ffffffff81456b10>] ? scsi_eh_get_sense+0x250/0x250
[183373.131503] [<ffffffff810b052f>] kthread+0xcf/0xe0
[183373.131505] [<ffffffff810b0460>] ? kthread_create_on_node+0x140/0x140
[183373.131507] [<ffffffff81696418>] ret_from_fork+0x58/0x90
[183373.131509] [<ffffffff810b0460>] ? kthread_create_on_node+0x140/0x140
Signed-off-by: Chad Dupuis <chad.dupuis@cavium.com>
Reviewed-by: Laurence Oberman <loberman@redhat.com>
Tested-by: Laurence Oberman <loberman@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>1 parent 6363b3f commit faae19b
1 file changed
+32
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1084 | 1084 | | |
1085 | 1085 | | |
1086 | 1086 | | |
| 1087 | + | |
1087 | 1088 | | |
1088 | 1089 | | |
1089 | 1090 | | |
1090 | 1091 | | |
1091 | 1092 | | |
1092 | 1093 | | |
1093 | | - | |
1094 | | - | |
| 1094 | + | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
1095 | 1100 | | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
1096 | 1105 | | |
1097 | | - | |
1098 | | - | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
1099 | 1109 | | |
1100 | 1110 | | |
1101 | 1111 | | |
1102 | 1112 | | |
1103 | 1113 | | |
1104 | 1114 | | |
| 1115 | + | |
1105 | 1116 | | |
1106 | 1117 | | |
1107 | 1118 | | |
| |||
1118 | 1129 | | |
1119 | 1130 | | |
1120 | 1131 | | |
| 1132 | + | |
1121 | 1133 | | |
1122 | 1134 | | |
1123 | 1135 | | |
| |||
1194 | 1206 | | |
1195 | 1207 | | |
1196 | 1208 | | |
| 1209 | + | |
| 1210 | + | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
1197 | 1214 | | |
1198 | 1215 | | |
1199 | 1216 | | |
1200 | 1217 | | |
1201 | 1218 | | |
1202 | 1219 | | |
1203 | 1220 | | |
1204 | | - | |
| 1221 | + | |
1205 | 1222 | | |
1206 | 1223 | | |
1207 | 1224 | | |
| |||
1221 | 1238 | | |
1222 | 1239 | | |
1223 | 1240 | | |
1224 | | - | |
| 1241 | + | |
| 1242 | + | |
| 1243 | + | |
| 1244 | + | |
| 1245 | + | |
1225 | 1246 | | |
1226 | 1247 | | |
1227 | 1248 | | |
| |||
1233 | 1254 | | |
1234 | 1255 | | |
1235 | 1256 | | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
| 1260 | + | |
1236 | 1261 | | |
1237 | | - | |
| 1262 | + | |
1238 | 1263 | | |
1239 | 1264 | | |
1240 | 1265 | | |
| |||
1249 | 1274 | | |
1250 | 1275 | | |
1251 | 1276 | | |
1252 | | - | |
1253 | 1277 | | |
1254 | 1278 | | |
1255 | 1279 | | |
| |||
0 commit comments