From: Derrick Brashear Date: Wed, 30 Oct 2002 22:27:18 +0000 (+0000) Subject: rx-junk-writevinit-20021030 X-Git-Tag: openafs-devel-1_3_50~530 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=19f082ad8c88265386239544b2011a77d6873421;p=packages%2Fo%2Fopenafs.git rx-junk-writevinit-20021030 we don't use it, so it's gone --- diff --git a/src/rx/rx_prototypes.h b/src/rx/rx_prototypes.h index 0ae2d5627..d7d8950dd 100644 --- a/src/rx/rx_prototypes.h +++ b/src/rx/rx_prototypes.h @@ -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); diff --git a/src/rx/rx_rdwr.c b/src/rx/rx_rdwr.c index ab85b8a9a..ea2cd6030 100644 --- a/src/rx/rx_rdwr.c +++ b/src/rx/rx_rdwr.c @@ -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.