]> git.baikalelectronics.ru Git - kernel.git/commit
vhost/scsi: Use GFP_ATOMIC with percpu_ida_alloc for obtaining tag
authorNicholas Bellinger <nab@linux-iscsi.org>
Mon, 23 Sep 2013 18:42:28 +0000 (11:42 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 2 Oct 2013 04:27:31 +0000 (21:27 -0700)
commit8ee33a2bb0dfbe31c3561b856a4a5d1393d4e9d9
tree403bdc848fc11049bd20ecb565f701a4d1f3f5c3
parent629822516968a2a6ca79578a531c66b6b06b1801
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: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Asias He <asias@redhat.com>
Cc: Kent Overstreet <kmo@daterainc.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/vhost/scsi.c