diff options
author | Matthew Wilcox | 2018-06-12 12:05:43 -0700 |
---|---|---|
committer | Martin K. Petersen | 2018-06-19 22:02:25 -0400 |
commit | 83c2b54b9295a5fc0d9c8f1751aaf8099d1760f6 (patch) | |
tree | b93af98e7faa42e779d5af7dfa7ec3d030e9a250 /drivers/xen | |
parent | ba80917d9932da022d2e74eae66e44139dd65136 (diff) |
scsi: target: Abstract tag freeing
Introduce target_free_tag() and convert all drivers to use it.
Signed-off-by: Matthew Wilcox <willy@infradead.org>
Reviewed-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/xen')
-rw-r--r-- | drivers/xen/xen-scsiback.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/xen/xen-scsiback.c b/drivers/xen/xen-scsiback.c index 7bc88fd43cfc..ec6635258ed8 100644 --- a/drivers/xen/xen-scsiback.c +++ b/drivers/xen/xen-scsiback.c @@ -1377,9 +1377,7 @@ static int scsiback_check_stop_free(struct se_cmd *se_cmd) static void scsiback_release_cmd(struct se_cmd *se_cmd) { - struct se_session *se_sess = se_cmd->se_sess; - - percpu_ida_free(&se_sess->sess_tag_pool, se_cmd->map_tag); + target_free_tag(se_cmd->se_sess, se_cmd); } static u32 scsiback_sess_get_index(struct se_session *se_sess) |