• N
    vhost/scsi: Convert to per-cpu ida_alloc + ida_free command map · 4824d3bf
    Nicholas Bellinger 提交于
    This patch changes vhost/scsi to use transport_init_session_tags()
    pre-allocation logic for per-cpu session tag pooling with internal
    ida_alloc() + ida_free() calls based upon the saved se_cmd->map_tag id.
    
    FIXME: Make transport_init_session_tags() number of tags setup
    configurable per vring client setting via configfs
    
    v5 changes:
     - Convert to percpu_ida.h include
    
    v3 changes:
     - Update to percpu-ida usage
     - Rebase to v3.11-rc5 code
    
    Cc: Michael S. Tsirkin <mst@redhat.com>
    Cc: Asias He <asias@redhat.com>
    Cc: Kent Overstreet <kmo@daterainc.com>
    Acked-by: NMichael S. Tsirkin <mst@redhat.com>
    Signed-off-by: NNicholas Bellinger <nab@linux-iscsi.org>
    4824d3bf
scsi.c 56.1 KB