]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit11e87ed42abf8bce722e5861bf2db5ade53ccd23
treeb011f7c134534f041a54330fa55b5e558302581b
parent18da0b99b25bf200680f91bd7e2c844b2d3cfb94
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