git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac9fde2
)
vhost/scsi: use vmalloc for order-10 allocation
author
Michael S. Tsirkin
<mst@redhat.com>
Tue, 17 Sep 2013 06:30:34 +0000
(09:30 +0300)
committer
Michael S. Tsirkin
<mst@redhat.com>
Tue, 17 Sep 2013 19:55:46 +0000
(22:55 +0300)
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: Asias He <asias@redhat.com>
Reported-by: Dan Aloni <alonid@stratoscale.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vhost/scsi.c
patch
|
blob
|
history
diff --cc
drivers/vhost/scsi.c
Simple merge