mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
scsi: target: Abstract tag freeing
Introduce target_free_tag() and convert all drivers to use it. Signed-off-by: Matthew Wilcox <[email protected]> Reviewed-by: Jens Axboe <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
This commit is contained in:
parent
ba80917d99
commit
83c2b54b92
8 changed files with 14 additions and 11 deletions
|
|
@ -324,7 +324,7 @@ static void vhost_scsi_release_cmd(struct se_cmd *se_cmd)
|
|||
}
|
||||
|
||||
vhost_scsi_put_inflight(tv_cmd->inflight);
|
||||
percpu_ida_free(&se_sess->sess_tag_pool, se_cmd->map_tag);
|
||||
target_free_tag(se_sess, se_cmd);
|
||||
}
|
||||
|
||||
static u32 vhost_scsi_sess_get_index(struct se_session *se_sess)
|
||||
|
|
|
|||
Loading…
Reference in a new issue