|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] Fix read-only mappings in blkback driver.
ChangeSet 1.1450, 2005/05/12 10:28:21+01:00, kaf24@xxxxxxxxxxxxxxxxxxxx
Fix read-only mappings in blkback driver.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
blkback.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff -Nru a/linux-2.6.11-xen-sparse/drivers/xen/blkback/blkback.c
b/linux-2.6.11-xen-sparse/drivers/xen/blkback/blkback.c
--- a/linux-2.6.11-xen-sparse/drivers/xen/blkback/blkback.c 2005-05-12
06:04:31 -04:00
+++ b/linux-2.6.11-xen-sparse/drivers/xen/blkback/blkback.c 2005-05-12
06:04:31 -04:00
@@ -486,12 +486,11 @@
preq.nr_sects += seg[i].nsec;
aop[i].u.map_grant_ref.host_virt_addr = MMAP_VADDR(pending_idx, i);
-
aop[i].u.map_grant_ref.dom = blkif->domid;
aop[i].u.map_grant_ref.ref = blkif_gref_from_fas(fas);
- aop[i].u.map_grant_ref.flags = ( GNTMAP_host_map |
- ( ( operation == READ ) ?
- 0 : GNTMAP_readonly ) );
+ aop[i].u.map_grant_ref.flags = GNTMAP_host_map;
+ if ( operation == READ )
+ aop[i].u.map_grant_ref.flags |= GNTMAP_readonly;
}
if ( unlikely(HYPERVISOR_grant_table_op(
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] Fix read-only mappings in blkback driver.,
BitKeeper Bot <=
|
|
|
|
|