Skip to content
Commit 4a47d3a1 authored by Nicholas Bellinger's avatar Nicholas Bellinger
Browse files

vhost/scsi: Use GFP_ATOMIC with percpu_ida_alloc for obtaining tag



Fix GFP_KERNEL -> GFP_ATOMIC usage of percpu_ida_alloc() within
vhost_scsi_get_tag(), as this code is expected to be called directly
from interrupt context.

v2 changes:

  - Handle possible tag < 0 failure with GFP_ATOMIC

Acked-by: default avatarMichael S. Tsirkin <mst@redhat.com>
Acked-by: default avatarAsias He <asias@redhat.com>
Cc: Kent Overstreet <kmo@daterainc.com>
Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
parent 0b41d6ca
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment