aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorMichael S. Tsirkin <[email protected]>2013-09-17 06:30:34 +0000
committerMichael S. Tsirkin <[email protected]>2013-09-17 19:55:46 +0000
commit595cb754983d4387cb25b3dcf08f5129663d634e (patch)
treefbd228ea66ec0cf53681efb952fc084a8b6603f0 /fs/btrfs/dev-replace.c
parentvhost: wake up worker outside spin_lock (diff)
downloadkernel-595cb754983d4387cb25b3dcf08f5129663d634e.tar.gz
kernel-595cb754983d4387cb25b3dcf08f5129663d634e.zip
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: Asias He <[email protected]> Reported-by: Dan Aloni <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions