]> git.baikalelectronics.ru Git - kernel.git/commit
Xen/gntdev: don't needlessly use kvcalloc()
authorJan Beulich <jbeulich@suse.com>
Wed, 10 Mar 2021 10:46:13 +0000 (11:46 +0100)
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>
Wed, 10 Mar 2021 22:39:29 +0000 (16:39 -0600)
commit63c13b6ef16299abf2c868ef4735c0e14bd0bb01
treed30db68e7e948fcdeeae5f0fb503654c2d504a81
parenta778b1cf2bf6c59a856bef75af95de8f08c2ac41
Xen/gntdev: don't needlessly use kvcalloc()

Requesting zeroed memory when all of it will be overwritten subsequently
by all ones is a waste of processing bandwidth. In fact, rather than
recording zeroed ->grants[], fill that array too with more appropriate
"invalid" indicators.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Link: https://lore.kernel.org/r/9a726be2-4893-8ffe-0ef1-b70dd1c229b1@suse.com
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
drivers/xen/gntdev.c