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

Change oap magic LASSERT into LASSERTF to aid debugging.

lustre/osc/osc_request.c

index f194942..7b96c44 100644 (file)
@@ -2181,7 +2181,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)) {