Andreas: I tested that OST will never grant more space to liblustre than
the initial 4M.
}
#define PAGE_SIZE (4096)
-#define _npages (512)
+#define _npages (2048)
static int _buffer[_npages][PAGE_SIZE/sizeof(int)];
exit(1);
}
}
- printf("succefully write %d pages\n", _npages);
+ printf("succefully write %d pages(%d per xfer)\n", _npages, xfer);
memset(_buffer, 0, sizeof(_buffer));
exit(1);
}
}
- printf("succefully read %d pages\n", _npages);
+ printf("succefully read %d pages(%d per xfer)\n", _npages, xfer);
/* compute checksum */
for (i = 0; i < _npages; i++) {
{
obd_flag bits = OBD_MD_FLBLOCKS|OBD_MD_FLGRANT;
- /* XXX obd_brw_internal() might reuse obdo in it's loop thus
- * hit the following assert. any actual meaning of this? temporarily
- * disable it.
- * in kernel mode, probably VFS will prevent it happen.
- */
- //LASSERT(!(oa->o_valid & bits));
+ LASSERT(!(oa->o_valid & bits));
oa->o_valid |= bits;
spin_lock(&cli->cl_loi_list_lock);