Whamcloud - gitweb
- add missing unlocks.
authorbraam <braam>
Tue, 2 Jul 2002 08:41:34 +0000 (08:41 +0000)
committerbraam <braam>
Tue, 2 Jul 2002 08:41:34 +0000 (08:41 +0000)
lustre/ptlrpc/service.c

index a979435..a4591e8 100644 (file)
@@ -156,6 +156,7 @@ static int handle_incoming_request(struct obd_device *obddev,
                 CERROR("incomplete request: ptl %d from %Lx xid %Ld\n",
                        svc->srv_req_portal, event->initiator.nid,
                        request.rq_xid);
+                spin_unlock(&svc->srv_lock);
                 return -EINVAL;
         }
 
@@ -163,6 +164,7 @@ static int handle_incoming_request(struct obd_device *obddev,
                 CERROR("wrong lustre_msg magic: ptl %d from %Lx xid %Ld\n",
                        svc->srv_req_portal, event->initiator.nid,
                        request.rq_xid);
+                spin_unlock(&svc->srv_lock);
                 return -EINVAL;
         }
 
@@ -170,6 +172,7 @@ static int handle_incoming_request(struct obd_device *obddev,
                 CERROR("wrong lustre_msg version: ptl %d from %Lx xid %Ld\n",
                        svc->srv_req_portal, event->initiator.nid,
                        request.rq_xid);
+                spin_unlock(&svc->srv_lock);
                 return -EINVAL;
         }