mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
iscsi-target: add void (*iscsit_release_cmd)()
Add void (*iscsit_release_cmd)() to struct iscsit_transport, iscsi-target uses this callback to release transport driver resources associated with an iSCSI cmd. cxgbit.ko needs this callback to release DDP resource and sg page in case of PASSTHROUGH_SG_TO_MEM_NOALLOC. Signed-off-by: Varun Prakash <[email protected]> Signed-off-by: Nicholas Bellinger <[email protected]>
This commit is contained in:
parent
2854bb23cd
commit
7ec811a8e9
2 changed files with 4 additions and 0 deletions
|
|
@ -725,6 +725,9 @@ void __iscsit_free_cmd(struct iscsi_cmd *cmd, bool scsi_cmd,
|
|||
iscsit_remove_cmd_from_immediate_queue(cmd, conn);
|
||||
iscsit_remove_cmd_from_response_queue(cmd, conn);
|
||||
}
|
||||
|
||||
if (conn && conn->conn_transport->iscsit_release_cmd)
|
||||
conn->conn_transport->iscsit_release_cmd(conn, cmd);
|
||||
}
|
||||
|
||||
void iscsit_free_cmd(struct iscsi_cmd *cmd, bool shutdown)
|
||||
|
|
|
|||
Loading…
Reference in a new issue