summaryrefslogtreecommitdiff
path: root/drivers/target/target_core_transport.c
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2018-10-15 18:51:38 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2018-10-16 08:13:35 +0300
commit81b6ca6dbada186d0d41c67db8d8eb223a64a56f (patch)
treedff01edd6f5d3f8a9f1056175055532cc02574ac /drivers/target/target_core_transport.c
parent80b045b385cfef10939c913fbfeb19ce5491c1f2 (diff)
downloadlinux-81b6ca6dbada186d0d41c67db8d8eb223a64a56f.tar.xz
scsi: target/core: Use sg_alloc_table() instead of open-coding it
The purpose of sg_alloc_table() is to allocate and initialize an sg-list. Use that function instead of open-coding it. This patch will make it easier to share code for caching sg-list allocations between the SCSI and NVMe target cores. Signed-off-by: Bart Van Assche <bvanassche@acm.org> Cc: Nicholas Bellinger <nab@linux-iscsi.org> Cc: Mike Christie <mchristi@redhat.com> Cc: Christoph Hellwig <hch@lst.de> Cc: Hannes Reinecke <hare@suse.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/target/target_core_transport.c')
0 files changed, 0 insertions, 0 deletions