Skip to content
Commit 595cb754 authored by Michael S. Tsirkin's avatar Michael S. Tsirkin
Browse files

vhost/scsi: use vmalloc for order-10 allocation



As vhost scsi device struct is large, if the device is
created on a busy system, kzalloc() might fail, so this patch does a
fallback to vzalloc().

As vmalloc() adds overhead on data-path, add __GFP_REPEAT
to kzalloc() flags to do this fallback only when really needed.

Reviewed-by: default avatarAsias He <asias@redhat.com>
Reported-by: default avatarDan Aloni <alonid@stratoscale.com>
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent ac9fde24
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