Whamcloud - gitweb
- Added DEBUG_SUBSYSTEMs
[fs/lustre-release.git] / lustre / ost / ost_handler.c
index 0359a00..f8c1317 100644 (file)
@@ -19,7 +19,6 @@
  * 
  */
 
-
 #define EXPORT_SYMTAB
 
 #include <linux/version.h>
@@ -30,6 +29,9 @@
 #include <linux/ext2_fs.h>
 #include <linux/quotaops.h>
 #include <asm/unistd.h>
+
+#define DEBUG_SUBSYSTEM S_OST
+
 #include <linux/obd_support.h>
 #include <linux/obd.h>
 #include <linux/obd_class.h>
@@ -55,7 +57,7 @@ static int ost_queue_req(struct obd_device *obddev, struct ptlrpc_request *req)
                return -ENOMEM;
        }
 
-       printk("---> OST at %d %p, incoming req %p, srv_req %p\n", 
+        CDEBUG(0, "---> OST at %d %p, incoming req %p, srv_req %p\n",
               __LINE__, ost, req, srv_req);
 
        memset(srv_req, 0, sizeof(*req)); 
@@ -160,7 +162,6 @@ static int ost_getattr(struct ost_obd *ost, struct ptlrpc_request *req)
        int rc;
 
        ENTRY;
-       printk("ost getattr entered\n"); 
        
        conn.oc_id = req->rq_req.ost->connid;
        conn.oc_dev = ost->ost_tgt;
@@ -253,7 +254,7 @@ static int ost_connect(struct ost_obd *ost, struct ptlrpc_request *req)
 
        req->rq_rep.ost->result =ost->ost_tgt->obd_type->typ_ops->o_connect(&conn);
 
-       printk("ost_connect: rep buffer %p, id %d\n", req->rq_repbuf, 
+        CDEBUG(0, "ost_connect: rep buffer %p, id %d\n", req->rq_repbuf,
               conn.oc_id);
        req->rq_rep.ost->connid = conn.oc_id;
        EXIT;
@@ -398,7 +399,7 @@ int ost_handle(struct obd_device *obddev, struct ptlrpc_request *req)
        struct ptlreq_hdr *hdr;
 
        ENTRY;
-       printk("ost_handle: req at %p\n", req); 
+        CDEBUG(0, "req at %p\n", req);
 
        hdr = (struct ptlreq_hdr *)req->rq_reqbuf;
        if (NTOH__u32(hdr->type) != OST_TYPE_REQ) {
@@ -629,7 +630,7 @@ static int ost_setup(struct obd_device *obddev, obd_count len,
                OBD_ALLOC(ost->ost_service, sizeof(*ost->ost_service));
                if (ost->ost_service == NULL)
                        return -ENOMEM;
-               ost->ost_service->srv_buf_size = 4 * 1024;
+               ost->ost_service->srv_buf_size = 64 * 1024;
                ost->ost_service->srv_portal = OST_REQUEST_PORTAL;
                memcpy(&ost->ost_service->srv_self, &peer, sizeof(peer));
                ost->ost_service->srv_wait_queue = &ost->ost_waitq;