scsi: target: tcm_loop: Use block cmd allocator for se_cmds
authorMike Christie <michael.christie@oracle.com>
Sat, 27 Feb 2021 16:59:59 +0000 (10:59 -0600)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 4 Mar 2021 22:37:02 +0000 (17:37 -0500)
commite0eb5d38b732b011cd9ed5b1bf9f59b83c2500d3
treeb011f7c134534f041a54330fa55b5e558302581b
parent6ec29cb8ad333c1b4efd3acaf7451538c30220ae
scsi: target: tcm_loop: Use block cmd allocator for se_cmds

Make tcm_loop use the block layer cmd allocator for se_cmds instead of
using the tcm_loop_cmd_cache. In the future when we can use the host tags
for internal requests like TMFs we can completely kill the
tcm_loop_cmd_cache.

Link: https://lore.kernel.org/r/20210227170006.5077-19-michael.christie@oracle.com
Tested-by: Laurence Oberman <loberman@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Mike Christie <michael.christie@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/target/loopback/tcm_loop.c