From: pjkirner Date: Fri, 30 Sep 2005 13:03:38 +0000 (+0000) Subject: * Remove unused code X-Git-Tag: v1_7_100~1^25~6^2~123 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=5a510eaff6f5835d308e43074d7bdc507a29d64e;p=fs%2Flustre-release.git * Remove unused code --- diff --git a/lnet/klnds/ptllnd/ptllnd_cb.c b/lnet/klnds/ptllnd/ptllnd_cb.c index 27b1f81..a29d4a3 100644 --- a/lnet/klnds/ptllnd/ptllnd_cb.c +++ b/lnet/klnds/ptllnd/ptllnd_cb.c @@ -1031,85 +1031,6 @@ kptllnd_scheduler(void *arg) return (0); } - -int kptllnd_process_scheduled_tx(kptl_data_t *kptllnd_data) -{ - kptl_tx_t *tx = NULL; - unsigned long flags; - - spin_lock_irqsave(&kptllnd_data->kptl_sched_lock, flags); - - /* - * If the list is not empty, grab the first one - * and pull it off the list - */ - if(!list_empty(&kptllnd_data->kptl_sched_txq)){ - tx = list_entry (kptllnd_data->kptl_sched_txq.next, - kptl_tx_t, tx_schedlist); - list_del_init(&tx->tx_schedlist); - } - - spin_unlock_irqrestore(&kptllnd_data->kptl_sched_lock, flags); - - if(tx){ - PJK_UT_MSG(">>> tx=%p\n",tx); - kptllnd_tx_done(tx); - PJK_UT_MSG("<<<\n"); - } - - return tx!=NULL; -} - -int kptllnd_process_scheduled_rx(kptl_data_t *kptllnd_data) -{ - kptl_rx_t *rx = NULL; - unsigned long flags; - - spin_lock_irqsave(&kptllnd_data->kptl_sched_lock, flags); - - /* - * If the list is not empty, grab the first one - * and pull it off the list - */ - if(!list_empty(&kptllnd_data->kptl_sched_rxq)){ - rx = list_entry (kptllnd_data->kptl_sched_rxq.next, - kptl_rx_t, rx_list); - list_del_init(&rx->rx_list); - } - - spin_unlock_irqrestore(&kptllnd_data->kptl_sched_lock, flags); - - if(rx) - kptllnd_rx_scheduler_handler(rx); - - return rx!=NULL; -} - -int kptllnd_process_scheduled_rxb(kptl_data_t *kptllnd_data) -{ - kptl_rx_buffer_t *rxb = NULL; - unsigned long flags; - - spin_lock_irqsave(&kptllnd_data->kptl_sched_lock, flags); - - /* - * If the list is not empty, grab the first one - * and pull it off the list - */ - if(!list_empty(&kptllnd_data->kptl_sched_rxbq)){ - rxb = list_entry (kptllnd_data->kptl_sched_rxbq.next, - kptl_rx_buffer_t, rxb_repost_list); - list_del_init(&rxb->rxb_repost_list); - } - - spin_unlock_irqrestore(&kptllnd_data->kptl_sched_lock, flags); - - if(rxb) - kptllnd_rx_buffer_post_handle_error(rxb); - - return rxb!=NULL; -} - void kptllnd_clean_canceled_peers(kptl_data_t *kptllnd_data) { unsigned long flags;