Merge 4.9.44 into android-4.9
Changes in 4.9.44 mm: ratelimit PFNs busy info message mm: fix list corruptions on shmem shrinklist futex: Remove unnecessary warning from get_futex_key xtensa: fix cache aliasing handling code for WT cache xtensa: mm/cache: add missing EXPORT_SYMBOLs xtensa: don't limit csum_partial export by CONFIG_NET mtd: nand: Fix timing setup for NANDs that do not support SET FEATURES iscsi-target: fix memory leak in iscsit_setup_text_cmd() iscsi-target: Fix iscsi_np reset hung task during parallel delete target: Fix node_acl demo-mode + uncached dynamic shutdown regression fuse: initialize the flock flag in fuse_file on allocation nand: fix wrong default oob layout for small pages using soft ecc mmc: mmc: correct the logic for setting HS400ES signal voltage nfs/flexfiles: fix leak of nfs4_ff_ds_version arrays drm/etnaviv: Fix off-by-one error in reloc checking drm/i915: Fix out-of-bounds array access in bdw_load_gamma_lut USB: serial: option: add D-Link DWM-222 device ID USB: serial: cp210x: add support for Qivicon USB ZigBee dongle USB: serial: pl2303: add new ATEN device id usb: musb: fix tx fifo flush handling again USB: hcd: Mark secondary HCD as dead if the primary one died staging:iio:resolver:ad2s1210 fix negative IIO_ANGL_VEL read iio: accel: bmc150: Always restore device to normal mode after suspend-resume iio: light: tsl2563: use correct event code staging: comedi: comedi_fops: do not call blocking ops when !TASK_RUNNING uas: Add US_FL_IGNORE_RESIDUE for Initio Corporation INIC-3069 usb: gadget: udc: renesas_usb3: Fix usb_gadget_giveback_request() calling usb: renesas_usbhs: Fix UGCTRL2 value for R-Car Gen3 USB: Check for dropped connection before switching to full speed usb: core: unlink urbs from the tail of the endpoint's urb_list usb: quirks: Add no-lpm quirk for Moshi USB to Ethernet Adapter usb:xhci:Add quirk for Certain failing HP keyboard on reset after resume iio: adc: vf610_adc: Fix VALT selection value for REFSEL bits pnfs/blocklayout: require 64-bit sector_t pinctrl: sunxi: add a missing function of A10/A20 pinctrl driver pinctrl: intel: merrifield: Correct UART pin lists pinctrl: uniphier: fix WARN_ON() of pingroups dump on LD11 pinctrl: uniphier: fix WARN_ON() of pingroups dump on LD20 pinctrl: samsung: Remove bogus irq_[un]mask from resource management pinctrl: meson-gxbb: Add missing GPIODV_18 pin entry MIPS: DEC: Fix an int-handler.S CPU_DADDI_WORKAROUNDS regression Linux 4.9.44 Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
+10
-2
@@ -1007,7 +1007,11 @@ static int shmem_setattr(struct dentry *dentry, struct iattr *attr)
|
||||
*/
|
||||
if (IS_ENABLED(CONFIG_TRANSPARENT_HUGE_PAGECACHE)) {
|
||||
spin_lock(&sbinfo->shrinklist_lock);
|
||||
if (list_empty(&info->shrinklist)) {
|
||||
/*
|
||||
* _careful to defend against unlocked access to
|
||||
* ->shrink_list in shmem_unused_huge_shrink()
|
||||
*/
|
||||
if (list_empty_careful(&info->shrinklist)) {
|
||||
list_add_tail(&info->shrinklist,
|
||||
&sbinfo->shrinklist);
|
||||
sbinfo->shrinklist_len++;
|
||||
@@ -1774,7 +1778,11 @@ alloc_nohuge: page = shmem_alloc_and_acct_page(gfp, info, sbinfo,
|
||||
* to shrink under memory pressure.
|
||||
*/
|
||||
spin_lock(&sbinfo->shrinklist_lock);
|
||||
if (list_empty(&info->shrinklist)) {
|
||||
/*
|
||||
* _careful to defend against unlocked access to
|
||||
* ->shrink_list in shmem_unused_huge_shrink()
|
||||
*/
|
||||
if (list_empty_careful(&info->shrinklist)) {
|
||||
list_add_tail(&info->shrinklist,
|
||||
&sbinfo->shrinklist);
|
||||
sbinfo->shrinklist_len++;
|
||||
|
||||
Reference in New Issue
Block a user