|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] Fix gnttab bug in blkfront.
# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 7a30b587387fb07fd37a0470f4ebed7c9e7c06f2
# Parent fb5de385a9ee62e1e3232dcd3cf2021067b8e3eb
Fix gnttab bug in blkfront.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
diff -r fb5de385a9ee -r 7a30b587387f
linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c
--- a/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c Wed Jul 27
23:15:15 2005
+++ b/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c Thu Jul 28
09:10:05 2005
@@ -1428,8 +1428,9 @@
int i;
#ifdef CONFIG_XEN_BLKDEV_GRANT
- if ( 0 > gnttab_alloc_grant_references( MAXIMUM_OUTSTANDING_BLOCK_REQS,
- &gref_head, &gref_terminal ))
+ /* A grant for every ring slot, plus one for the ring itself. */
+ if ( 0 > gnttab_alloc_grant_references(MAXIMUM_OUTSTANDING_BLOCK_REQS + 1,
+ &gref_head, &gref_terminal) )
return 1;
printk(KERN_ALERT "Blkif frontend is using grant tables.\n");
#endif
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] Fix gnttab bug in blkfront.,
Xen patchbot -unstable <=
|
|
|
|
|