Re: [PATCH] vhost/scsi: use vmalloc for order-10 allocation

2013-09-17 Thread Michael S. Tsirkin
On Tue, Sep 17, 2013 at 10:14:37PM +0400, Sergei Shtylyov wrote: > Hello. > > On 09/17/2013 11:21 AM, Michael S. Tsirkin wrote: > > >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 vm

Re: [PATCH] vhost/scsi: use vmalloc for order-10 allocation

2013-09-17 Thread Sergei Shtylyov
Hello. On 09/17/2013 11:21 AM, Michael S. Tsirkin wrote: 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

Re: [PATCH] vhost/scsi: use vmalloc for order-10 allocation

2013-09-17 Thread Asias He
On Tue, Sep 17, 2013 at 10:21:07AM +0300, Michael S. Tsirkin wrote: > 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()

[PATCH] vhost/scsi: use vmalloc for order-10 allocation

2013-09-17 Thread Michael S. Tsirkin
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. Reported-by: Dan Aloni Sign