xen/gnttab: Fold adjacent calls to gnttab_clear_flags()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 21 Nov 2018 18:38:41 +0000 (18:38 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 8 Jul 2019 21:18:42 +0000 (16:18 -0500)
commitb541287c3600713feaaaf7608cd405e7b2e4efd0
tree54f25ed850f42195c52b673260942c8d566d387c
parent958524b25490d0a65ccea2e82665188be2f0ba3a
xen/gnttab: Fold adjacent calls to gnttab_clear_flags()

Atomic operations are expensive to use, especially following XSA-295 for ARM.
It is wasteful to use two of them back-to-back when one will do.

Especially for a misbehaving guest on ARM, this will reduce the system
disruption required to complete the grant operations.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/common/grant_table.c