diff options
author | Bart Van Assche <bvanassche@acm.org> | 2018-10-15 17:51:38 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2018-10-16 07:13:35 +0200 |
commit | 81b6ca6dbada186d0d41c67db8d8eb223a64a56f (patch) | |
tree | dff01edd6f5d3f8a9f1056175055532cc02574ac /drivers/rapidio/devices | |
parent | scsi: target/core: Use the SECTOR_SHIFT constant (diff) | |
download | linux-81b6ca6dbada186d0d41c67db8d8eb223a64a56f.tar.xz linux-81b6ca6dbada186d0d41c67db8d8eb223a64a56f.zip |
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/rapidio/devices')
0 files changed, 0 insertions, 0 deletions