]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
xen: check if there are clients waiting in gnttab_end_foreign_access_references
authorroyger <royger@FreeBSD.org>
Thu, 21 Jun 2018 15:47:47 +0000 (15:47 +0000)
committerroyger <royger@FreeBSD.org>
Thu, 21 Jun 2018 15:47:47 +0000 (15:47 +0000)
commitdcd0cd39dd8d578e9a3fce57179c4149f462fd7a
tree781a8a4abd3bdf795ee72964a633f4fe50c43873
parentf1d7fa0336b1a08eb3b192332a671237438446f3
xen: check if there are clients waiting in gnttab_end_foreign_access_references

Without a call to check_free_callbacks() clients waiting for grant
references would not be woken up even when there are sufficient grant
references available.

The check was likely left out as a mistake when the function was first
added.

Note that other functions used to free grant references already call
check_free_callbacks.

Submitted by: pratyush
Reviewed by: royger
Differential review: https://reviews.freebsd.org/D15899
sys/dev/xen/grant_table/grant_table.c