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
This commit is contained in:
Roger Pau Monné 2018-06-21 15:47:47 +00:00
parent 25b10ed4b7
commit de06f02ea4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=335490

View File

@ -245,6 +245,7 @@ gnttab_end_foreign_access_references(u_int count, grant_ref_t *refs)
gnttab_free_count += count;
gnttab_entry(tail) = gnttab_free_head;
gnttab_free_head = head;
check_free_callbacks();
mtx_unlock(&gnttab_list_lock);
}
}