]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen/gntdev: reduce copy batch size to 16
authorDavid Vrabel <david.vrabel@citrix.com>
Mon, 9 May 2016 09:59:48 +0000 (10:59 +0100)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 6 Jul 2016 16:13:25 +0000 (12:13 -0400)
commit30b95665b959adc04a339a76c562c1466840dbf5
treeefcac77a4eaf3a9d08754f122dc8df70e3d8394f
parent4014e44c727e539e342882aded6be2aec7e811d0
xen/gntdev: reduce copy batch size to 16

IOCTL_GNTDEV_GRANT_COPY batches copy operations to reduce the number
of hypercalls.  The stack is used to avoid a memory allocation in a
hot path. However, a batch size of 24 requires more than 1024 bytes of
stack which in some configurations causes a compiler warning.

    xen/gntdev.c: In function ‘gntdev_ioctl_grant_copy’:
    xen/gntdev.c:949:1: warning: the frame size of 1248 bytes is
    larger than 1024 bytes [-Wframe-larger-than=]

This is a harmless warning as there is still plenty of stack spare,
but people keep trying to "fix" it.  Reduce the batch size to 16 to
reduce stack usage to less than 1024 bytes.  This should have minimal
impact on performance.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
(cherry picked from commit 36ae220aa62d382a8bacbf7ec080d9d36a2b4d49)
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
OraBug: 23585393
drivers/xen/gntdev.c