Repository navigation
Commit 7b93e2d
iscsi-target: Fix ABORT_TASK + connection reset iscsi_queue_req memory leak
commit bbc0504 upstream.
This patch fixes a iscsi_queue_req memory leak when ABORT_TASK response
has been queued by TFO->queue_tm_rsp() -> lio_queue_tm_rsp() after a
long standing I/O completes, but the connection has already reset and
waiting for cleanup to complete in iscsit_release_commands_from_conn()
-> transport_generic_free_cmd() -> transport_wait_for_tasks() code.
It moves iscsit_free_queue_reqs_for_conn() after the per-connection command
list has been released, so that the associated se_cmd tag can be completed +
released by target-core before freeing any remaining iscsi_queue_req memory
for the connection generated by lio_queue_tm_rsp().
Cc: Thomas Glanzmann <thomas@glanzmann.de>
Cc: Charalampos Pournaris <charpour@gmail.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent e6a77ef commit 7b93e2d
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4234 | 4234 | | |
4235 | 4235 | | |
4236 | 4236 | | |
4237 | | - | |
4238 | | - | |
4239 | 4237 | | |
4240 | 4238 | | |
4241 | 4239 | | |
| |||
4252 | 4250 | | |
4253 | 4251 | | |
4254 | 4252 | | |
| 4253 | + | |
4255 | 4254 | | |
4256 | 4255 | | |
4257 | 4256 | | |
| |||
0 commit comments