Linux 3.6.10
Greg KH
maintainerI'm announcing the release of the 3.6.10 kernel.
All users of the 3.6 kernel series must upgrade.
The updated 3.6.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.6.y
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Makefile | 2 arch/arm/Kconfig | 1 arch/arm/mach-dove/include/mach/pm.h | 2 arch/arm/mach-dove/irq.c | 14 + arch/arm/mach-kirkwood/pcie.c | 11 - arch/x86/include/asm/fpu-internal.h | 15 + arch/x86/kernel/cpu/amd.c | 14 + arch/x86/kernel/smpboot.c | 5 drivers/acpi/processor_driver.c | 1 drivers/edac/i7300_edac.c | 8 drivers/edac/i7core_edac.c | 6 drivers/gpu/drm/i915/intel_lvds.c | 8 drivers/gpu/drm/radeon/evergreen.c | 191 +++++++++++------------ drivers/gpu/drm/radeon/evergreen_reg.h | 2 drivers/gpu/drm/radeon/evergreend.h | 7 drivers/gpu/drm/radeon/radeon_asic.h | 1 drivers/md/raid1.c | 2 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c | 11 - drivers/net/ethernet/realtek/8139cp.c | 22 +- drivers/net/usb/qmi_wwan.c | 42 +++++ drivers/net/wireless/iwlwifi/dvm/rxon.c | 12 - drivers/target/target_core_transport.c | 6 kernel/sched/auto_group.c | 4 kernel/sched/auto_group.h | 5 kernel/workqueue.c | 4 mm/memory-failure.c | 8 mm/sparse.c | 10 - mm/vmscan.c | 27 ++- net/mac80211/offchannel.c | 2 29 files changed, 278 insertions(+), 165 deletions(-)
Alan Cox (1):
ACPI: missing break
Alex Deucher (3):
drm/radeon/dce4+: don't use radeon_crtc for vblank callback drm/radeon: properly handle mc_stop/mc_resume on evergreen+ (v2) drm/radeon: properly track the crtc not_enabled case evergreen_mc_stop()
Andre Przywara (1):
x86, amd: Disable way access filter on Piledriver CPUs
Ariel Elior (1):
bnx2x: remove redundant warning log
Bjørn Mork (2):
net: qmi_wwan: adding more ZTE devices
net: qmi_wwan: add Huawei E173
Chris Wilson (1):
drm/i915: Add no-lvds quirk for Supermicro X7SPA-H
Emmanuel Grumbach (1):
iwlwifi: fix the basic CCK rates calculation
Francois Romieu (1):
8139cp: revert "set ring address before enabling receiver"
Greg Kroah-Hartman (1):
Linux 3.6.10
Jason Gunthorpe (1):
ARM: Kirkwood: Update PCI-E fixup
Jean Delvare (1):
i7300_edac: Fix error flag testing
Jianguo Wu (1):
mm/vmemmap: fix wrong use of virt_to_page
Johannes Berg (1):
mac80211: fix remain-on-channel (non-)cancelling
Johannes Weiner (1):
mm: vmscan: fix endless loop in kswapd balancing
Mike Galbraith (2):
workqueue: exit rescuer_thread() as TASK_RUNNING
Revert "sched, autogroup: Stop going ahead if autogroup is disabled"
Naoya Horiguchi (1):
mm: soft offline: split thp at the beginning of soft_offline_page()
NeilBrown (1):
md/raid1{,0}: fix deadlock in bitmap_unplug.
Prarit Bhargava (1):
i7core_edac: fix panic when accessing sysfs files
Roland Dreier (1):
target: Fix handling of aborted commands
Russell King - ARM Linux (2):
Dove: Attempt to fix PMU/RTC interrupts
Dove: Fix irq_to_pmu()
Vincent Palatin (1):
x86, fpu: Avoid FPU lazy restore after suspend
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 6 -SUBLEVEL = 9 +SUBLEVEL = 10 EXTRAVERSION = NAME = Terrified Chipmunk
arch/arm/Kconfig +1 -0
@@ -585,6 +585,7 @@ config ARCH_KIRKWOOD bool "Marvell Kirkwood" select CPU_FEROCEON select PCI + select PCI_QUIRKS select ARCH_REQUIRE_GPIOLIB select GENERIC_CLOCKEVENTS select NEED_MACH_IO_H
arch/arm/mach-dove/include/mach/pm.h +1 -1
@@ -45,7 +45,7 @@ static inline int pmu_to_irq(int pin)static inline int irq_to_pmu (int irq) { -if (IRQ_DOVE_PMU_START < irq && irq <NR_IRQS ) +if (IRQ_DOVE_PMU_START <= irq && irq <NR_IRQS )return irq -IRQ_DOVE_PMU_START ;return -EINVAL ;
arch/arm/mach-dove/irq.c +13 -1
@@ -45,8 +45,20 @@ static void pmu_irq_ack(struct irq_data *d)int pin =irq_to_pmu (d->irq);u32 u; +/* +* The PMU mask register is not RW0C: it is RW. This means that +* the bits take whatever value is written to them; if you write +* a '1', you will set the interrupt. +* +* Unfortunately this means there is NO race free way to clear +* these interrupts. +* +* So, let's structure the code so that the window is as small as +* possible. +*/ u = ~(1 << (pin &31 )); -writel (u,PMU_INTERRUPT_CAUSE ); + u &=readl_relaxed (PMU_INTERRUPT_CAUSE ); +writel_relaxed (u,PMU_INTERRUPT_CAUSE ); }static struct irq_chip pmu_irq_chip = {
arch/arm/mach-kirkwood/pcie.c +8 -3
@@ -225,14 +225,19 @@ static int __init kirkwood_pcie_setup(int nr, struct pci_sys_data *sys)return 1 ; } +/* +* The root complex has a hardwired class of PCI_CLASS_MEMORY_OTHER, when it +* is operating as a root complex this needs to be switched to +* PCI_CLASS_BRIDGE_HOST or Linux will errantly try to process the BAR's on +* the device. Decoding setup is handled by the orion code. +*/ static void __devinit rc_pci_fixup (struct pci_dev *dev) { -/* -* Prevent enumeration of root complex. -*/ if (dev->bus->parent ==NULL && dev->devfn ==0 ) {int i; + dev->class &=0xff ; + dev->class |=PCI_CLASS_BRIDGE_HOST <<8 ;for (i =0 ; i <DEVICE_COUNT_RESOURCE ; i++) { dev->resource[i].start =0 ; dev->resource[i].end =0 ;
arch/x86/include/asm/fpu-internal.h +9 -6
@@ -334,14 +334,17 @@ static inline void __thread_fpu_begin(struct task_struct *tsk)typedef struct {int preload; }fpu_switch_t ;/* -* FIXME! We could do a totally lazy restore, but we need to -* add a per-cpu "this was the task that last touched the FPU -* on this CPU" variable, and the task needs to have a "I last -* touched the FPU on this CPU" and check them. +* Must be run with preemption disabled: this clears the fpu_owner_task, +* on this CPU. * -* We don't do that yet, so "fpu_lazy_restore()" always returns -* false, but some day.. +* This will disable any lazy FPU state restore of the current FPU state, +* but if the current thread owns the FPU, it will still be saved by. */ +static inline void __cpu_disable_lazy_restore (unsigned int cpu) +{ +per_cpu (fpu_owner_task, cpu) =NULL ; +} +static inline int fpu_lazy_restore (struct task_struct *new,unsigned int cpu) { return new == this_cpu_read_stable(fpu_owner_task) &&
arch/x86/kernel/cpu/amd.c +14 -0
@@ -631,6 +631,20 @@ static void __cpuinit init_amd(struct cpuinfo_x86 *c) } } +/* +* The way access filter has a performance penalty on some workloads. +* Disable it on the affected CPUs. +*/ +if ((c->x86 ==0x15 ) && + (c->x86_model >=0x02 ) && (c->x86_model <0x20 )) { +u64 val; + +if (!rdmsrl_safe (0xc0011021 , &val) && !(val &0x1E )) { + val |=0x1E ; +wrmsrl_safe (0xc0011021 , val); + } + } +cpu_detect_cache_sizes (c);/* Multi core CPU? */
arch/x86/kernel/smpboot.c +5 -0
@@ -68,6 +68,8 @@#include <asm/mwait.h> #include <asm/apic.h> #include <asm/io_apic.h> +#include <asm/i387.h> +#include <asm/fpu-internal.h> #include <asm/setup.h> #include <asm/uv/uv.h> #include <linux/mc146818rtc.h>
@@ -817,6 +819,9 @@ int __cpuinit native_cpu_up(unsigned int cpu, struct task_struct *tidle)per_cpu (cpu_state, cpu) =CPU_UP_PREPARE ; +/* the FPU context is blank, nobody can own it */ +__cpu_disable_lazy_restore (cpu); + err =do_boot_cpu (apicid, cpu, tidle);if (err) {pr_debug ("do_boot_cpu failed %d\n" , err);
drivers/acpi/processor_driver.c +1 -0
@@ -409,6 +409,7 @@ static void acpi_processor_notify(struct acpi_device *device, u32 event)acpi_bus_generate_proc_event (device, event,0 );acpi_bus_generate_netlink_event (device->pnp.device_class,dev_name (&device->dev), event,0 ); +break ;default :ACPI_DEBUG_PRINT ((ACPI_DB_INFO ,"Unsupported event [0x%x]\n" , event));
drivers/edac/i7300_edac.c +4 -4
@@ -197,8 +197,8 @@ static const char *ferr_fat_fbd_name[] = { [0 ] ="Memory Write error on non-redundant retry or " "FBD configuration Write error on retry", }; -#define GET_FBD_FAT_IDX (fbderr) (fbderr & (3 << 28)) -#define FERR_FAT_FBD_ERR_MASK ((1 << 0) | (1 << 1) | (1 << 2) | (1 << 3)) +#define GET_FBD_FAT_IDX (fbderr) (((fbderr) >> 28) & 3) +#define FERR_FAT_FBD_ERR_MASK ((1 << 0) | (1 << 1) | (1 << 2) | (1 << 22))#define FERR_NF_FBD 0xa0static const char *ferr_nf_fbd_name[] = {
@@ -225,7 +225,7 @@ static const char *ferr_nf_fbd_name[] = { [1] = "Aliased Uncorrectable Non-Mirrored Demand Data ECC", [0] = "Uncorrectable Data ECC on Replay", }; -#define GET_FBD_NF_IDX (fbderr) (fbderr & (3 << 28)) +#define GET_FBD_NF_IDX (fbderr) (((fbderr) >> 28) & 3)#define FERR_NF_FBD_ERR_MASK ((1 << 24) | (1 << 23) | (1 << 22) | (1 << 21) |\ (1 << 18) | (1 << 17) | (1 << 16) | (1 << 15) |\ (1 << 14) | (1 << 13) | (1 << 11) | (1 << 10) |\
@@ -464,7 +464,7 @@ static void i7300_process_fbd_error(struct mem_ctl_info *mci) errnum =find_first_bit (&errors,ARRAY_SIZE (ferr_nf_fbd_name)); specific =GET_ERR_FROM_TABLE (ferr_nf_fbd_name, errnum); - branch = (GET_FBD_FAT_IDX (error_reg) ==2 ) ?1 :0 ; + branch = (GET_FBD_NF_IDX (error_reg) ==2 ) ?1 :0 ;pci_read_config_dword (pvt->pci_dev_16_1_fsb_addr_map,REDMEMA , &syndrome);
drivers/edac/i7core_edac.c +3 -3
@@ -816,7 +816,7 @@ static ssize_t i7core_inject_store_##param( \struct device_attribute *mattr, \ const char *data, size_t count) \ { \ - struct mem_ctl_info *mci = to_mci(dev); \ + struct mem_ctl_info *mci = dev_get_drvdata(dev); \struct i7core_pvt *pvt; \long value; \int rc; \
@@ -845,7 +845,7 @@ static ssize_t i7core_inject_show_##param( \struct device_attribute *mattr, \ char *data) \ { \ - struct mem_ctl_info *mci = to_mci(dev); \ + struct mem_ctl_info *mci = dev_get_drvdata(dev); \struct i7core_pvt *pvt; \ \ pvt = mci->pvt_info; \
@@ -1052,7 +1052,7 @@ static ssize_t i7core_show_counter_##param( \struct device_attribute *mattr, \ char *data) \ { \ - struct mem_ctl_info *mci = to_mci(dev); \ + struct mem_ctl_info *mci = dev_get_drvdata(dev); \struct i7core_pvt *pvt = mci->pvt_info; \ \edac_dbg (1 ,"\n" ); \
drivers/gpu/drm/i915/intel_lvds.c +8 -0
@@ -788,6 +788,14 @@ static const struct dmi_system_id intel_no_lvds[] = { DMI_MATCH(DMI_BOARD_NAME, "D525TUD"), }, }, + { + .callback = intel_no_lvds_dmi_callback, + .ident = "Supermicro X7SPA-H", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Supermicro"), + DMI_MATCH(DMI_PRODUCT_NAME, "X7SPA-H"), + }, + }, { }/* terminating entry */ };
drivers/gpu/drm/radeon/evergreen.c +96 -95
235 lines not on this page · raw message
drivers/gpu/drm/radeon/evergreen_reg.h +2 -0
@@ -218,6 +218,8 @@#define EVERGREEN_CRTC_CONTROL 0x6e70# define EVERGREEN_CRTC_MASTER_EN (1 << 0)# define EVERGREEN_CRTC_DISP_READ_REQUEST_DISABLE (1 << 24) +#define EVERGREEN_CRTC_BLANK_CONTROL 0x6e74 +# define EVERGREEN_CRTC_BLANK_DATA_EN (1 << 8)#define EVERGREEN_CRTC_STATUS 0x6e8c# define EVERGREEN_CRTC_V_BLANK (1 << 0)#define EVERGREEN_CRTC_STATUS_POSITION 0x6e90
drivers/gpu/drm/radeon/evergreend.h +7 -0
@@ -87,6 +87,10 @@#define CONFIG_MEMSIZE 0x5428 +#define BIF_FB_EN 0x5490 +#define FB_READ_EN (1 << 0) +#define FB_WRITE_EN (1 << 1) +#define CP_STRMOUT_CNTL 0x84FC#define CP_COHER_CNTL 0x85F0
@@ -434,6 +438,9 @@#define NOOFCHAN_MASK 0x00003000#define MC_SHARED_CHREMAP 0x2008 +#define MC_SHARED_BLACKOUT_CNTL 0x20ac +#define BLACKOUT_MODE_MASK 0x00000007 +#define MC_ARB_RAMCFG 0x2760#define NOOFBANK_SHIFT 0#define NOOFBANK_MASK 0x00000003
drivers/gpu/drm/radeon/radeon_asic.h +1 -0
@@ -389,6 +389,7 @@ void r700_cp_fini(struct radeon_device *rdev);struct evergreen_mc_save {u32 vga_render_control;u32 vga_hdp_control; +bool crtc_enabled[RADEON_MAX_CRTCS ]; };void evergreen_pcie_gart_tlb_flush (struct radeon_device *rdev);
drivers/md/raid1.c +1 -1
@@ -958,7 +958,7 @@ static void raid1_unplug(struct blk_plug_cb *cb, bool from_schedule)struct r1conf *conf = mddev->private;struct bio *bio; -if (from_schedule) { +if (from_schedule || current->bio_list) {spin_lock_irq (&conf->device_lock);bio_list_merge (&conf->pending_bio_list, &plug->pending); conf->pending_count += plug->pending_cnt;
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c +7 -4
@@ -9545,10 +9545,13 @@ static int __devinit bnx2x_prev_unload_common(struct bnx2x *bp)*/ static void __devinit bnx2x_prev_interrupted_dmae (struct bnx2x *bp) { -u32 val =REG_RD (bp,PGLUE_B_REG_PGLUE_B_INT_STS ); -if (val &PGLUE_B_PGLUE_B_INT_STS_REG_WAS_ERROR_ATTN ) { -BNX2X_ERR ("was error bit was found to be set in pglueb upon startup. Clearing" ); -REG_WR (bp,PGLUE_B_REG_WAS_ERROR_PF_7_0_CLR ,1 <<BP_FUNC (bp)); +if (!CHIP_IS_E1x (bp)) { +u32 val =REG_RD (bp,PGLUE_B_REG_PGLUE_B_INT_STS ); +if (val &PGLUE_B_PGLUE_B_INT_STS_REG_WAS_ERROR_ATTN ) { +BNX2X_ERR ("was error bit was found to be set in pglueb upon startup. Clearing" ); +REG_WR (bp,PGLUE_B_REG_WAS_ERROR_PF_7_0_CLR , +1 <<BP_FUNC (bp)); + } } }
drivers/net/ethernet/realtek/8139cp.c +11 -11
@@ -979,17 +979,6 @@ static void cp_init_hw (struct cp_private *cp)cpw32_f (MAC0 +0 ,le32_to_cpu (*(__le32 *) (dev->dev_addr +0 )));cpw32_f (MAC0 +4 ,le32_to_cpu (*(__le32 *) (dev->dev_addr +4 ))); -cpw32_f (HiTxRingAddr,0 ); -cpw32_f (HiTxRingAddr +4 ,0 ); - - ring_dma = cp->ring_dma; -cpw32_f (RxRingAddr, ring_dma &0xffffffff ); -cpw32_f (RxRingAddr +4 , (ring_dma >>16 ) >>16 ); - - ring_dma +=sizeof (struct cp_desc ) *CP_RX_RING_SIZE ; -cpw32_f (TxRingAddr, ring_dma &0xffffffff ); -cpw32_f (TxRingAddr +4 , (ring_dma >>16 ) >>16 ); -cp_start_hw (cp);cpw8 (TxThresh,0x06 );/* XXX convert magic num to a constant */
@@ -1003,6 +992,17 @@ static void cp_init_hw (struct cp_private *cp)cpw8 (Config5,cpr8 (Config5) & PMEStatus); +cpw32_f (HiTxRingAddr,0 ); +cpw32_f (HiTxRingAddr +4 ,0 ); + + ring_dma = cp->ring_dma; +cpw32_f (RxRingAddr, ring_dma &0xffffffff ); +cpw32_f (RxRingAddr +4 , (ring_dma >>16 ) >>16 ); + + ring_dma +=sizeof (struct cp_desc ) *CP_RX_RING_SIZE ; +cpw32_f (TxRingAddr, ring_dma &0xffffffff ); +cpw32_f (TxRingAddr +4 , (ring_dma >>16 ) >>16 ); +cpw16 (MultiIntr,0 );cpw8_f (Cfg9346, Cfg9346_Lock);
drivers/net/usb/qmi_wwan.c +42 -0
58 lines not on this page · raw message
drivers/net/wireless/iwlwifi/dvm/rxon.c +6 -6
@@ -1012,12 +1012,12 @@ static void iwl_calc_basic_rates(struct iwl_priv *priv,* As a consequence, it's not as complicated as it sounds, just add * any lower rates to the ACK rate bitmap. */ -if (IWL_RATE_11M_INDEX < lowest_present_ofdm) - ofdm |=IWL_RATE_11M_MASK >>IWL_FIRST_CCK_RATE ; -if (IWL_RATE_5M_INDEX < lowest_present_ofdm) - ofdm |=IWL_RATE_5M_MASK >>IWL_FIRST_CCK_RATE ; -if (IWL_RATE_2M_INDEX < lowest_present_ofdm) - ofdm |=IWL_RATE_2M_MASK >>IWL_FIRST_CCK_RATE ; +if (IWL_RATE_11M_INDEX < lowest_present_cck) + cck |=IWL_RATE_11M_MASK >>IWL_FIRST_CCK_RATE ; +if (IWL_RATE_5M_INDEX < lowest_present_cck) + cck |=IWL_RATE_5M_MASK >>IWL_FIRST_CCK_RATE ; +if (IWL_RATE_2M_INDEX < lowest_present_cck) + cck |=IWL_RATE_2M_MASK >>IWL_FIRST_CCK_RATE ;/* 1M already there or needed so always add */ cck |=IWL_RATE_1M_MASK >>IWL_FIRST_CCK_RATE ;
drivers/target/target_core_transport.c +4 -2
@@ -1756,8 +1756,10 @@ void target_execute_cmd(struct se_cmd *cmd)/* * If the received CDB has aleady been aborted stop processing it here. */ -if (transport_check_aborted_status (cmd,1 )) +if (transport_check_aborted_status (cmd,1 )) { +complete (&cmd->t_transport_stop_comp);return ; + }/* * Determine if IOCTL context caller in requesting the stopping of this
@@ -3029,7 +3031,7 @@ void transport_send_task_abort(struct se_cmd *cmd)unsigned long flags;spin_lock_irqsave (&cmd->t_state_lock, flags); -if (cmd->se_cmd_flags &SCF_SENT_CHECK_CONDITION ) { +if (cmd->se_cmd_flags & (SCF_SENT_CHECK_CONDITION |SCF_SENT_DELAYED_TAS )) {spin_unlock_irqrestore (&cmd->t_state_lock, flags);return ; }
kernel/sched/auto_group.c +0 -4
@@ -143,15 +143,11 @@ autogroup_move_group(struct task_struct *p, struct autogroup *ag) p->signal->autogroup =autogroup_kref_get (ag); -if (!ACCESS_ONCE (sysctl_sched_autogroup_enabled)) - goto out; - t = p; do { sched_move_task(t); } while_each_thread(p, t); -out: unlock_task_sighand(p, &flags); autogroup_kref_put(prev); }
kernel/sched/auto_group.h +0 -5
@@ -4,11 +4,6 @@#include <linux/rwsem.h> struct autogroup { -/* -* reference doesn't mean how many thread attach to this -* autogroup now. It just stands for the number of task -* could use this autogroup. -*/ struct kref kref;struct task_group *tg;struct rw_semaphore lock;
kernel/workqueue.c +3 -1
@@ -2266,8 +2266,10 @@ static int rescuer_thread(void *__wq) repeat:set_current_state (TASK_INTERRUPTIBLE ); -if (kthread_should_stop ()) +if (kthread_should_stop ()) { +__set_current_state (TASK_RUNNING );return 0 ; + }/* * See whether any cpu is asking for help. Unbounded
mm/memory-failure.c +8 -0
@@ -1474,9 +1474,17 @@ int soft_offline_page(struct page *page, int flags) {int ret;unsigned long pfn =page_to_pfn (page); +struct page *hpage =compound_trans_head (page);if (PageHuge (page))return soft_offline_huge_page (page, flags); +if (PageTransHuge (hpage)) { +if (PageAnon (hpage) &&unlikely (split_huge_page (hpage))) { +pr_info ("soft offline: %#lx: failed to split THP\n" , + pfn); +return -EBUSY ; + } + } ret =get_any_page (page, pfn, flags);if (ret <0 )
mm/sparse.c +4 -6
@@ -617,7 +617,7 @@ static void __kfree_section_memmap(struct page *memmap, unsigned long nr_pages) {return ;/* XXX: Not implemented yet */ } -static void free_map_bootmem (struct page *page,unsigned long nr_pages) +static void free_map_bootmem (struct page *memmap,unsigned long nr_pages) { }#else
@@ -658,10 +658,11 @@ static void __kfree_section_memmap(struct page *memmap, unsigned long nr_pages) get_order(sizeof(struct page) * nr_pages)); } -static void free_map_bootmem (struct page *page,unsigned long nr_pages) +static void free_map_bootmem (struct page *memmap,unsigned long nr_pages) {unsigned long maps_section_nr, removing_section_nr, i;unsigned long magic; +struct page *page =virt_to_page (memmap);for (i =0 ; i < nr_pages; i++, page++) { magic = (unsigned long ) page->lru.next;
@@ -710,13 +711,10 @@ static void free_section_usemap(struct page *memmap, unsigned long *usemap)*/ if (memmap) { -struct page *memmap_page; - memmap_page =virt_to_page (memmap); - nr_pages =PAGE_ALIGN (PAGES_PER_SECTION *sizeof (struct page )) >>PAGE_SHIFT ; -free_map_bootmem (memmap_page, nr_pages); +free_map_bootmem (memmap, nr_pages); } }
mm/vmscan.c +18 -9
@@ -2383,6 +2383,19 @@ static void age_active_anon(struct zone *zone, struct scan_control *sc) }while (memcg); } +static bool zone_balanced (struct zone *zone,int order, +unsigned long balance_gap,int classzone_idx) +{ +if (!zone_watermark_ok_safe (zone, order,high_wmark_pages (zone) + + balance_gap, classzone_idx,0 )) +return false; + +if (COMPACTION_BUILD && order && !compaction_suitable (zone, order)) +return false; + +return true; +} +/* * pgdat_balanced is used when checking if a node is balanced for high-order * allocations. Only zones that meet watermarks and are in a zone allowed
@@ -2461,8 +2474,7 @@ static bool prepare_kswapd_sleep(pg_data_t *pgdat, int order, long remaining,continue ; } -if (!zone_watermark_ok_safe (zone, order,high_wmark_pages (zone), - i,0 )) +if (!zone_balanced (zone, order,0 , i)) all_zones_ok = false;else balanced += zone->present_pages;
@@ -2571,8 +2583,7 @@ loop_again:break ; } -if (!zone_watermark_ok_safe (zone, order, -high_wmark_pages (zone),0 ,0 )) { +if (!zone_balanced (zone, order,0 ,0 )) { end_zone = i;break ; }else {
@@ -2648,9 +2659,8 @@ loop_again: testorder =0 ;if ((buffer_heads_over_limit &&is_highmem_idx (i)) || - !zone_watermark_ok_safe (zone, testorder, -high_wmark_pages (zone) + balance_gap, - end_zone,0 )) { + !zone_balanced (zone, testorder, + balance_gap, end_zone)) {shrink_zone (zone, &sc); reclaim_state->reclaimed_slab =0 ;
@@ -2677,8 +2687,7 @@ loop_again:continue ; } -if (!zone_watermark_ok_safe (zone, testorder, -high_wmark_pages (zone), end_zone,0 )) { +if (!zone_balanced (zone, testorder,0 , end_zone)) { all_zones_ok =0 ;/* * We are still under min water mark. This
net/mac80211/offchannel.c +0 -2
@@ -453,8 +453,6 @@ void ieee80211_roc_purge(struct ieee80211_sub_if_data *sdata)list_move_tail (&roc->list, &tmp_list); roc->abort = true; } - -ieee80211_start_next_roc (local);mutex_unlock (&local->mtx);list_for_each_entry_safe (roc, tmp, &tmp_list, list) {