gnttab: consolidate pin-to-status syncing
authorJan Beulich <jbeulich@suse.com>
Mon, 18 Jan 2021 11:14:19 +0000 (12:14 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 18 Jan 2021 11:14:19 +0000 (12:14 +0100)
commitb066d57183548ae199acdf6a0022e012e324a7b2
treecba703f0a0ef9e4ef27834bb994d8d6668ad5785
parent8cec5d065c243e54cae97aaa14b0de447883c278
gnttab: consolidate pin-to-status syncing

Forever since the fix for XSA-230 the 2nd of the comments ahead of
fixup_status_for_copy_pin() has been stale - there's nothing specific to
transitive grants there anymore.

Move the function up, drop the "copy" part from its name again, add a
"readonly" parameter, and use it also on other paths having decremented
one (or not having got to increment any) of the pin counts.

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