rx-junk-writevinit-20021030
authorDerrick Brashear <shadow@dementia.org>
Wed, 30 Oct 2002 22:27:18 +0000 (22:27 +0000)
committerDerrick Brashear <shadow@dementia.org>
Wed, 30 Oct 2002 22:27:18 +0000 (22:27 +0000)
we don't use it, so it's gone

src/rx/rx_prototypes.h
src/rx/rx_rdwr.c

index 0ae2d56..d7d8950 100644 (file)
@@ -436,7 +436,6 @@ extern int rxi_WritevAlloc(struct rx_call *call, struct iovec *iov,
         int *nio, int maxio, int nbytes);
 extern int rx_WritevAlloc(struct rx_call *call, struct iovec *iov, int *nio, 
         int maxio, int nbytes);
-extern int rx_WritevInit(struct rx_call *call);
 extern int rxi_WritevProc(struct rx_call *call, struct iovec *iov, 
         int nio, int nbytes);
 extern int rx_WritevProc(struct rx_call *call, struct iovec *iov, int nio, int nbytes);
index ab85b8a..ea2cd60 100644 (file)
@@ -1046,37 +1046,6 @@ int rx_WritevAlloc(struct rx_call *call, struct iovec *iov, int *nio,
     return bytes;
 }
 
-int rx_WritevInit(struct rx_call *call)
-{
-    int bytes;
-    SPLVAR;
-
-    /*
-     * Free any packets from the last call to ReadvProc/WritevProc.
-     * We do not need the lock because the receiver threads only
-     * touch the iovq when the RX_CALL_IOVEC_WAIT flag is set, and the
-     * RX_CALL_IOVEC_WAIT is always cleared before returning from
-     * ReadvProc/WritevProc.
-     */
-    if (!queue_IsEmpty(&call->iovq)) {
-        register struct rx_packet *rp;
-        register struct rx_packet *nxp;
-        for (queue_Scan(&call->iovq, rp, nxp, rx_packet)) {
-            queue_Remove(rp);
-            rxi_FreePacket(rp);
-        }
-    }
-
-    NETPRI;
-    AFS_RXGLOCK();
-    MUTEX_ENTER(&call->lock);
-    bytes = rxi_WriteProc(call, &bytes, 0);
-    MUTEX_EXIT(&call->lock);
-    AFS_RXGUNLOCK();
-    USERPRI;
-    return bytes;
-}
-
 /* rxi_WritevProc -- internal version.
  *
  * Send buffers allocated in rxi_WritevAlloc.