ia64/xen-unstable

changeset 4869:88c4b08c5b36

bitkeeper revision 1.1389.19.8 (428335d9JeSxN4hU8MATZ9cOA0J-bg)

Read-only mapping in blkback driver was correct after all.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Thu May 12 10:54:17 2005 +0000 (2005-05-12)
parents 3291b52e8ca6
children efc62ecb53c6 d23d2657744d
files linux-2.6.11-xen-sparse/drivers/xen/blkback/blkback.c
line diff
     1.1 --- a/linux-2.6.11-xen-sparse/drivers/xen/blkback/blkback.c	Thu May 12 10:42:02 2005 +0000
     1.2 +++ b/linux-2.6.11-xen-sparse/drivers/xen/blkback/blkback.c	Thu May 12 10:54:17 2005 +0000
     1.3 @@ -489,7 +489,7 @@ static void dispatch_rw_block_io(blkif_t
     1.4          aop[i].u.map_grant_ref.dom = blkif->domid;
     1.5          aop[i].u.map_grant_ref.ref = blkif_gref_from_fas(fas);
     1.6          aop[i].u.map_grant_ref.flags = GNTMAP_host_map;
     1.7 -        if ( operation == READ )
     1.8 +        if ( operation == WRITE )
     1.9              aop[i].u.map_grant_ref.flags |= GNTMAP_readonly;
    1.10      }
    1.11