[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] xen/grant-table: Remove outdated warning in gnttab_grow_table()
commit 26cada81c43719508783e72c244fcf57e495ccc7 Author: Julien Grall <julien@xxxxxxx> AuthorDate: Tue Feb 25 12:32:49 2020 +0000 Commit: Julien Grall <julien@xxxxxxx> CommitDate: Thu Mar 5 12:59:46 2020 +0000 xen/grant-table: Remove outdated warning in gnttab_grow_table() One of the warning message in gnttab_grow_table() refers to a function was removed in commit 6425f91c72 "xen/gnttab: Fold grant_table_{create, set_limits}() into grant_table_init()". Since the commit, gt->active will be allocated while initializing the grant table at domain creation. Therefore gt-active will always be valid. Rather than replacing the warning by another one, drop the check completely as we will likely not come back to a semi-initialized world. Signed-off-by: Julien Grall <jgrall@xxxxxxxxxx> Acked-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> --- xen/common/grant_table.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/xen/common/grant_table.c b/xen/common/grant_table.c index bc37acae0e..057c78f620 100644 --- a/xen/common/grant_table.c +++ b/xen/common/grant_table.c @@ -1793,12 +1793,6 @@ gnttab_grow_table(struct domain *d, unsigned int req_nr_frames) struct grant_table *gt = d->grant_table; unsigned int i, j; - if ( unlikely(!gt->active) ) - { - gprintk(XENLOG_WARNING, "grant_table_set_limits() call missing\n"); - return -ENODEV; - } - if ( req_nr_frames < INITIAL_NR_GRANT_FRAMES ) req_nr_frames = INITIAL_NR_GRANT_FRAMES; ASSERT(req_nr_frames <= gt->max_grant_frames); -- generated by git-patchbot for /home/xen/git/xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |