ia64/xen-unstable

changeset 283:563edc5c10fe

bitkeeper revision 1.122.1.4 (3e6df4a7f-8km7JCWMQgbr3amW1lUA)

xen_block.c:
.
author kaf24@scramble.cl.cam.ac.uk
date Tue Mar 11 14:37:27 2003 +0000 (2003-03-11)
parents 0ca5d6b12757
children fbfd209f962c
files xen/drivers/block/xen_block.c
line diff
     1.1 --- a/xen/drivers/block/xen_block.c	Tue Mar 11 13:23:10 2003 +0000
     1.2 +++ b/xen/drivers/block/xen_block.c	Tue Mar 11 14:37:27 2003 +0000
     1.3 @@ -17,10 +17,8 @@
     1.4  #include <xeno/keyhandler.h>
     1.5  #include <xeno/interrupt.h>
     1.6  #include <xeno/segment.h>
     1.7 -#include <asm/domain_page.h> /* TEST_READ_VALIDITY */
     1.8  
     1.9  #if 0
    1.10 -#define TEST_READ_VALIDITY
    1.11  #define DPRINTK(_f, _a...) printk( _f , ## _a )
    1.12  #else
    1.13  #define DPRINTK(_f, _a...) ((void)0)
    1.14 @@ -206,16 +204,6 @@ static void end_block_io_op(struct buffe
    1.15          DPRINTK("Buffer not up-to-date at end of operation\n");
    1.16          pending_req->status = 1;
    1.17      }
    1.18 -#ifdef TEST_READ_VALIDITY
    1.19 -    else if ( pending_req->operation == READ )
    1.20 -    {
    1.21 -        unsigned long *buff = map_domain_mem(virt_to_phys(bh->b_data));
    1.22 -        if ( (buff[  0] == 0xdeadbeef) &&
    1.23 -             (buff[127] == 0xdeadbeef) )
    1.24 -            printk("An unmodified buffer at sector %ld. b_data = %08x, phys = %08x\n", bh->b_rsector,bh->b_data,virt_to_phys(bh->b_data));
    1.25 -        unmap_domain_mem(buff);
    1.26 -    }
    1.27 -#endif
    1.28  
    1.29      unlock_buffer(pending_req->domain, 
    1.30                    virt_to_phys(bh->b_data), 
    1.31 @@ -616,12 +604,6 @@ static void dispatch_rw_block_io(struct 
    1.32          } 
    1.33          else
    1.34          {
    1.35 -#ifdef TEST_READ_VALIDITY
    1.36 -            unsigned long *buff = map_domain_mem(phys_seg[i].buffer);
    1.37 -            buff[  0] = 0xdeadbeef;
    1.38 -            buff[127] = 0xdeadbeef;
    1.39 -            unmap_domain_mem(buff);
    1.40 -#endif
    1.41              bh->b_state = (1 << BH_Mapped) | (1 << BH_Read);
    1.42          }
    1.43