Lily Huang
2006-May-11 17:46 UTC
[Xen-devel] question about GET_ID_FROM_FREELIST function in blkfront
Hi, I noticed that the last element of freelist is initialized to be 0x0fffffff with the code below ---info->shadow[BLK_RING_SIZE-1].req.id = 0x0fffffff; This means the last element points to an invalid slot. But question is: if the last element is allocated, info->shadow_free will be this invalid slot 0x0fffffff, which may trigger the bug checking code "BUG_ON(free > BLK_RING_SIZE);" How to avoid this? Is this a reasonable design? Thanks, -l _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel