~ubuntu-branches/ubuntu/trusty/linux-linaro-omap/trusty

« back to all changes in this revision

Viewing changes to net/sched/sch_generic.c

  • Committer: Package Import Robot
  • Author(s): John Rigby, John Rigby
  • Date: 2011-09-26 10:44:23 UTC
  • Revision ID: package-import@ubuntu.com-20110926104423-57i0gl3v99b3lkfg
Tags: 3.0.0-1007.9
[ John Rigby ]

Enable crypto modules and remove crypto-modules from
exclude-module files
LP: #826021

Show diffs side-by-side

added added

removed removed

Lines of Context:
251
251
                        }
252
252
 
253
253
                        if (some_queue_timedout) {
254
 
                                char drivername[64];
255
254
                                WARN_ONCE(1, KERN_INFO "NETDEV WATCHDOG: %s (%s): transmit queue %u timed out\n",
256
 
                                       dev->name, netdev_drivername(dev, drivername, 64), i);
 
255
                                       dev->name, netdev_drivername(dev), i);
257
256
                                dev->netdev_ops->ndo_tx_timeout(dev);
258
257
                        }
259
258
                        if (!mod_timer(&dev->watchdog_timer,
815
814
        return false;
816
815
}
817
816
 
 
817
/**
 
818
 *      dev_deactivate_many - deactivate transmissions on several devices
 
819
 *      @head: list of devices to deactivate
 
820
 *
 
821
 *      This function returns only when all outstanding transmissions
 
822
 *      have completed, unless all devices are in dismantle phase.
 
823
 */
818
824
void dev_deactivate_many(struct list_head *head)
819
825
{
820
826
        struct net_device *dev;
 
827
        bool sync_needed = false;
821
828
 
822
829
        list_for_each_entry(dev, head, unreg_list) {
823
830
                netdev_for_each_tx_queue(dev, dev_deactivate_queue,
827
834
                                             &noop_qdisc);
828
835
 
829
836
                dev_watchdog_down(dev);
 
837
                sync_needed |= !dev->dismantle;
830
838
        }
831
839
 
832
 
        /* Wait for outstanding qdisc-less dev_queue_xmit calls. */
833
 
        synchronize_rcu();
 
840
        /* Wait for outstanding qdisc-less dev_queue_xmit calls.
 
841
         * This is avoided if all devices are in dismantle phase :
 
842
         * Caller will call synchronize_net() for us
 
843
         */
 
844
        if (sync_needed)
 
845
                synchronize_net();
834
846
 
835
847
        /* Wait for outstanding qdisc_run calls. */
836
848
        list_for_each_entry(dev, head, unreg_list)