Commit Graph

637263 Commits

Author SHA1 Message Date
Michal Hocko
f565af10c3 mm, vmscan: consider eligible zones in get_scan_count
am: 521e92b198

Change-Id: I39482c52cd53db294f51f2e2956f546487e2f1f9
2017-03-12 08:18:06 +00:00
Michal Hocko
a2463dff32 mm, vmscan: cleanup lru size claculations
am: 710531320a

Change-Id: Ia652a70a9cb48a9372af989cbda7142db4a7b798
2017-03-12 08:17:57 +00:00
Yisheng Xie
e63e34ad0b mm balloon: umount balloon_mnt when removing vb device
am: 8f6620e391

Change-Id: I0109a7006112a7eae7172d182b2f658a4b0a60e3
2017-03-12 08:17:48 +00:00
Minchan Kim
111bbe06e4 mm: do not access page->mapping directly on page_endio
am: 2c290eede9

Change-Id: I1aefdd04229ab592d2978115d311317a3c6a28d0
2017-03-12 08:17:39 +00:00
Vinayak Menon
c4457b4de6 mm: vmpressure: fix sending wrong events on underflow
am: 58d1dbb904

Change-Id: I15c4bffe29045f21eeeb6c554a6771a28ade4733
2017-03-12 08:17:30 +00:00
Gavin Shan
eaf1abccdf mm/page_alloc: fix nodes for reclaim in fast path
am: d1e8042628

Change-Id: I8535fbab1eede643a486709df9910876daa511b9
2017-03-12 08:17:20 +00:00
Dan Williams
9f702efabd mm, devm_memremap_pages: hold device_hotplug lock over mem_hotplug_{begin, done}
am: f1faaec484

Change-Id: I7e37ea31b7376f63e9ff38b5d40020e793a64c1a
2017-03-12 08:17:09 +00:00
Pavel Shilovsky
aa90df242a CIFS: Fix splice read for non-cached files
am: c06d74df4e

Change-Id: I5be916690073405f640982ecc15c60f40c02e2f9
2017-03-12 08:17:00 +00:00
Ashok Raj
26b78b5be9 iommu/vt-d: Tylersburg isoch identity map check is done too late.
am: 24427cd71d

Change-Id: Ic7b5db5e24e4c05065038aabc65b0b455e482726
2017-03-12 08:16:50 +00:00
CQ Tang
d96156a28d iommu/vt-d: Fix some macros that are incorrectly specified in intel-iommu
am: 61cb3c6357

Change-Id: I2818b12005c1683156e0042b20ae75b3535a8967
2017-03-12 08:16:41 +00:00
Wei Yongjun
f0e0a43c9d tpm_tis: fix the error handling of init_tis()
am: 84c2697c9c

Change-Id: I02ecd01133a00a9f80f0e752c4c35a4111ba3424
2017-03-12 08:16:32 +00:00
Leonard Crestez
e651f6c38f regulator: Fix regulator_summary for deviceless consumers
am: 2f714ba128

Change-Id: Id9a0b50e5aac52ae70403b220f8f81a77962b500
2017-03-12 08:16:23 +00:00
Suzuki K Poulose
6cd87bbb8f coresight: STM: Balance enable/disable
am: 59cd503c8c

Change-Id: Ica27d5cba60c63bed9afe197a07fc122cd7312f9
2017-03-12 08:16:13 +00:00
Arnd Bergmann
98b1796fa4 staging: rtl: fix possible NULL pointer dereference
am: c7472b964d

Change-Id: I47f0d514222016b00d200d2c4642e18c23f494fb
2017-03-12 08:16:03 +00:00
Oleg Drokin
e6a070e9a4 staging/lustre/lnet: Fix allocation size for sv_cpt_data
am: 148c4526d7

Change-Id: Ib4f7fa4a40c994607381e13db156ad50169bf5a6
2017-03-12 08:15:54 +00:00
Johan Hovold
71b7aa86de staging: greybus: loopback: fix broken udelay
am: 2893a55e39

Change-Id: I6eddb42dbb3e57bc51b7dbf0b932a30b540ee78c
2017-03-12 08:15:45 +00:00
Guenter Roeck
0622cb7f62 hwmon: (it87) Ensure that pwm control cache is current before updating values
am: 6c95eba9ca

Change-Id: I5f06541ef3e2cbe962135210fa90372fcb495994
2017-03-12 08:15:37 +00:00
Guenter Roeck
4de83bd781 hwmon: (it87) Do not overwrite bit 2..6 of pwm control registers
am: 4401e4779e

Change-Id: Ida7381d431c60735badcd92e16e8cc922f74cd5c
2017-03-12 08:15:27 +00:00
Hui Wang
a3950d5383 ALSA: hda - Fix micmute hotkey problem for a lenovo AIO machine
am: acb06ff2d5

Change-Id: I15f2ef78c23f327eabcb841ff948bdf910b61028
2017-03-12 08:15:18 +00:00
Takashi Iwai
2473b3dfdf ALSA: hda - Add subwoofer support for Dell Inspiron 17 7000 Gaming
am: 2abe620e01

Change-Id: I97a18d5ede44249a3755a5e43403f188aad0efdc
2017-03-12 08:15:09 +00:00
Takashi Iwai
60aa70542b ALSA: seq: Fix link corruption by event error handling
am: 09cd5d3479

Change-Id: I57ce19f2798f3d059d592706a79627d2d5fa35da
2017-03-12 08:14:59 +00:00
Takashi Iwai
d7d6a15fb8 ALSA: ctxfi: Fallback DMA mask to 32bit
am: 074f6db61f

Change-Id: I7bad93a4a27884ada4da2eb0576de0af8dfc26aa
2017-03-12 08:14:50 +00:00
Takashi Iwai
4d002c22e6 ALSA: timer: Reject user params with too small ticks
am: 5ac9276dd1

Change-Id: I10e2d71df6afce32a43d3d7a9656937a4113ab7b
2017-03-12 08:14:41 +00:00
Jaroslav Kysela
ecac8ef5ef ALSA: hda - fix Lewisburg audio issue
am: 51ce9867c2

Change-Id: Idcc9ef1ea1219407fdbe7d31432b00d2e9bbf32d
2017-03-12 08:14:32 +00:00
Kai-Heng Feng
c73d80c790 ALSA: hda/realtek - Cannot adjust speaker's volume on a Dell AIO
am: ebc3e95502

Change-Id: I882f3c7433e5ca2a9e33e18657362fafc0ee2972
2017-03-12 08:14:24 +00:00
Alexandre Belloni
758c607042 ARM: dts: at91: Enable DMA on sama5d2_xplained console
am: 9971863fdd

Change-Id: I9585a72bbc8717c831cb64c495862b5207fa1655
2017-03-12 08:14:14 +00:00
Alexandre Belloni
6cb0f8b50a ARM: dts: at91: Enable DMA on sama5d4_xplained console
am: f9a1949f8f

Change-Id: Idc392f1a7615552a2173916999283a4d029e41e1
2017-03-12 08:14:05 +00:00
Alexandre Belloni
54d2526be6 ARM: at91: define LPDDR types
am: 37e70c4de5

Change-Id: Ia6592a9db0e2d1053b433213a884143637d8acb8
2017-03-12 08:13:56 +00:00
Andi Shyti
39af437449 spi: s3c64xx: fix inconsistency between binding and driver
am: 404950add4

Change-Id: If19098198f6a85b04b1611e6a193be207ecda379
2017-03-12 08:13:47 +00:00
Theodore Ts'o
87089bcbdd ext4: fix deadlock between inline_data and ext4_expand_extra_isize_ea()
am: da1e40237f

Change-Id: I5c85cefcb10cba1d3a0edf6f6968927896929512
2017-03-12 08:13:38 +00:00
Sakari Ailus
1e0bde67b8 media: Properly pass through media entity types in entity enumeration
am: 719f1765b0

Change-Id: Ia9b9e295799255ca56ddf1dae49a6e372b5055a8
2017-03-12 08:13:29 +00:00
Sean Young
ae45211a66 lirc_dev: LIRC_{G,S}ET_REC_MODE do not work
am: ce1e60b492

Change-Id: I23c1e7dfc017e45dd514f41bd6fe9d15fdf469c9
2017-03-12 08:13:20 +00:00
Antti Palosaari
7591bf8314 cxd2820r: fix gpio null pointer dereference
am: 238442c2b5

Change-Id: I7ceb8c838cda13ea13ce4c669bc87735ab9dd385
2017-03-12 08:13:10 +00:00
Randy Dunlap
ce17f69b19 media: fix dm1105.c build error
am: 7e5b7798d0

Change-Id: Iaecc7a94ac72a2d9f0ad5a12e241583947a74bfe
2017-03-12 08:13:01 +00:00
Guennadi Liakhovetski
c4376d7981 uvcvideo: Fix a wrong macro
am: 02789ccd59

Change-Id: I73c8f1df95f61399bdfa6596f36cb4671ba81224
2017-03-12 08:12:52 +00:00
Nicolas Iooss
8ac41e5785 am437x-vpfe: always assign bpp variable
am: d6b88a09cc

Change-Id: Ib0feaa9ffe319659036937417271b180ab21ba4d
2017-03-12 08:12:43 +00:00
Zhang Rui
3e14c35816 mmc: sdhci-acpi: support deferred probe
am: 80bbadbc42

Change-Id: I8c7a37edef67fef67815c832cb20d228ea4b6606
2017-03-12 08:12:33 +00:00
Paul Burton
529bf5953a MIPS: Handle microMIPS jumps in the same way as MIPS32/MIPS64 jumps
am: 8d06cbd365

Change-Id: I1269796847ae8d9dc0a4a3d427a559b18ef7f89b
2017-03-12 08:12:24 +00:00
Paul Burton
92502f7966 MIPS: Calculate microMIPS ra properly when unwinding the stack
am: 209ad1941d

Change-Id: I0dd0947122b2efcced99fe0761732f41bd910a30
2017-03-12 08:12:14 +00:00
Paul Burton
f092062b60 MIPS: Fix is_jump_ins() handling of 16b microMIPS instructions
am: b14e085086

Change-Id: I13bd3881ddb2f2999b82c111de9d1630d977a858
2017-03-12 08:12:06 +00:00
Paul Burton
7f572102b9 MIPS: Fix get_frame_info() handling of microMIPS function size
am: b0b4eb58c5

Change-Id: Ic0a244312e3f1b9cb9a297d9fd692f34dddd4545
2017-03-12 08:11:57 +00:00
Paul Burton
2de80b1960 MIPS: Prevent unaligned accesses during stack unwinding
am: ce449cbdcf

Change-Id: I7e6e790cb8db07930f08cfc1e61a19b516163ae2
2017-03-12 08:11:49 +00:00
Paul Burton
cf86d09531 MIPS: Clear ISA bit correctly in get_frame_info()
am: d0eae5bbd1

Change-Id: If9cf0de485b0caf623a10b330f9ca3ca743c0e3f
2017-03-12 08:11:39 +00:00
Felix Fietkau
95f1627041 MIPS: Lantiq: Keep ethernet enabled during boot
am: 3660e62cfc

Change-Id: I0aa5c31f0205a33589f00b05a7853d90bc5e1004
2017-03-12 08:11:30 +00:00
James Cowgill
1b76e7020a MIPS: OCTEON: Fix copy_from_user fault handling for large buffers
am: 6f35f1fc14

Change-Id: Ie987dd591b46d46b35d3f40a25588543783e55ab
2017-03-12 08:11:22 +00:00
Mirko Parthey
a0694ad65e MIPS: BCM47XX: Fix button inversion for Asus WL-500W
am: ef9e73be03

Change-Id: I3390484d5a10ac9c13dca526f392201d9b380d1b
2017-03-12 08:11:13 +00:00
Ralf Baechle
c3ee5d2108 MIPS: Fix special case in 64 bit IP checksumming.
am: ef674c5eb8

Change-Id: I1314700d061976af7208b99d2792f971e3af971f
2017-03-12 08:11:05 +00:00
Purna Chandra Mandal
6d3ac269d9 MIPS: pic32mzda: Fix linker error for pic32_get_pbclk()
am: a8af2054e9

Change-Id: Ide50cfd761d7869693aad1b35b8673fb4bc90bfa
2017-03-12 08:10:57 +00:00
Michal Hocko
521e92b198 mm, vmscan: consider eligible zones in get_scan_count
commit 71ab6cfe88 upstream.

get_scan_count() considers the whole node LRU size when

 - doing SCAN_FILE due to many page cache inactive pages
 - calculating the number of pages to scan

In both cases this might lead to unexpected behavior especially on 32b
systems where we can expect lowmem memory pressure very often.

A large highmem zone can easily distort SCAN_FILE heuristic because
there might be only few file pages from the eligible zones on the node
lru and we would still enforce file lru scanning which can lead to
trashing while we could still scan anonymous pages.

The later use of lruvec_lru_size can be problematic as well.  Especially
when there are not many pages from the eligible zones.  We would have to
skip over many pages to find anything to reclaim but shrink_node_memcg
would only reduce the remaining number to scan by SWAP_CLUSTER_MAX at
maximum.  Therefore we can end up going over a large LRU many times
without actually having chance to reclaim much if anything at all.  The
closer we are out of memory on lowmem zone the worse the problem will
be.

Fix this by filtering out all the ineligible zones when calculating the
lru size for both paths and consider only sc->reclaim_idx zones.

The patch would need to be tweaked a bit to apply to 4.10 and older but
I will do that as soon as it hits the Linus tree in the next merge
window.

Link: http://lkml.kernel.org/r/20170117103702.28542-3-mhocko@kernel.org
Fixes: b2e18757f2 ("mm, vmscan: begin reclaiming pages on a per-node basis")
Signed-off-by: Michal Hocko <mhocko@suse.com>
Tested-by: Trevor Cordes <trevor@tecnopolis.ca>
Acked-by: Minchan Kim <minchan@kernel.org>
Acked-by: Hillf Danton <hillf.zj@alibaba-inc.com>
Acked-by: Mel Gorman <mgorman@suse.de>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-03-12 06:41:44 +01:00
Michal Hocko
710531320a mm, vmscan: cleanup lru size claculations
commit fd53880373 upstream.

lruvec_lru_size returns the full size of the LRU list while we sometimes
need a value reduced only to eligible zones (e.g.  for lowmem requests).
inactive_list_is_low is one such user.  Later patches will add more of
them.  Add a new parameter to lruvec_lru_size and allow it filter out
zones which are not eligible for the given context.

Link: http://lkml.kernel.org/r/20170117103702.28542-2-mhocko@kernel.org
Signed-off-by: Michal Hocko <mhocko@suse.com>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: Hillf Danton <hillf.zj@alibaba-inc.com>
Acked-by: Minchan Kim <minchan@kernel.org>
Acked-by: Mel Gorman <mgorman@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-03-12 06:41:43 +01:00