Whamcloud - gitweb
Branch b1_6
authorjohann <johann>
Mon, 9 Feb 2009 15:15:00 +0000 (15:15 +0000)
committerjohann <johann>
Mon, 9 Feb 2009 15:15:00 +0000 (15:15 +0000)
b=18067
i=johann
i=adilger

Change oap magic LASSERT into LASSERTF to aid debugging.

lustre/osc/osc_request.c

index eb67f14..b3a557a 100644 (file)
@@ -2141,7 +2141,8 @@ static int osc_send_oap_rpc(struct client_obd *cli, struct lov_oinfo *loi,
         list_for_each_entry_safe(oap, tmp, &lop->lop_pending, oap_pending_item){
                 ops = oap->oap_caller_ops;
 
-                LASSERT(oap->oap_magic == OAP_MAGIC);
+                LASSERTF(oap->oap_magic == OAP_MAGIC, "Bad oap magic: oap %p, "
+                         "magic 0x%x\n", oap, oap->oap_magic);
 
                 if (page_count != 0 &&
                     srvlock != !!(oap->oap_brw_flags & OBD_BRW_SRVLOCK)) {