direct-io.hg

changeset 7127:f633c3d0315b

full devices expect to be able to read the partition table during xlvbd_add
but couldn't because the device was not marked as BLKIF_CONNECTED and thus
blkif_queue_request discarded the read request. fix bug #220

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
author vh249@kneesaa.uk.xensource.com
date Thu Sep 29 11:25:50 2005 -0400 (2005-09-29)
parents 8c23b56f3954
children 65882bf339f6
files linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c	Thu Sep 29 15:49:54 2005 +0100
     1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c	Thu Sep 29 11:25:50 2005 -0400
     1.3 @@ -469,8 +469,8 @@ static void watch_for_status(struct xenb
     1.4  		return;
     1.5  	}
     1.6  
     1.7 +	info->connected = BLKIF_STATE_CONNECTED;
     1.8  	xlvbd_add(sectors, info->vdevice, binfo, sector_size, info);
     1.9 -	info->connected = BLKIF_STATE_CONNECTED;
    1.10  
    1.11  	blkif_state = BLKIF_STATE_CONNECTED;
    1.12