{"push_id":1028659771,"size":1,"distinct_size":1,"ref":"refs/heads/cm-13","head":"c8e5a4b8e754eb506da55a685b3045a1b4df0f52","before":"12eccccb159666a9e4e8d3f07198791aa3043ce2","commits":[{"sha":"c8e5a4b8e754eb506da55a685b3045a1b4df0f52","author":{"email":"c745fa7b96fe79db6d669643d5feb03ff0641332@gmail.com","name":"Jiang Liu"},"message":"mm: use a dedicated lock to protect totalram_pages and zone->managed_pages\n\nCurrently lock_memory_hotplug()/unlock_memory_hotplug() are used to\nprotect totalram_pages and zone->managed_pages.  Other than the memory\nhotplug driver, totalram_pages and zone->managed_pages may also be\nmodified at runtime by other drivers, such as Xen balloon,\nvirtio_balloon etc.  For those cases, memory hotplug lock is a little\ntoo heavy, so introduce a dedicated lock to protect totalram_pages and\nzone->managed_pages.\n\nNow we have a simplified locking rules totalram_pages and\nzone->managed_pages as:\n\n1) no locking for read accesses because they are unsigned long.\n2) no locking for write accesses at boot time in single-threaded context.\n3) serialize write accesses at runtime by acquiring the dedicated\n   managed_page_count_lock.\n\nAlso adjust zone->managed_pages when freeing reserved pages into the\nbuddy system, to keep totalram_pages and zone->managed_pages in\nconsistence.\n\n[akpm@linux-foundation.org: don't export adjust_managed_page_count to modules (for now)]\nSigned-off-by: Jiang Liu <jiang.liu@huawei.com>\nCc: Mel Gorman <mel@csn.ul.ie>\nCc: Michel Lespinasse <walken@google.com>\nCc: Rik van Riel <riel@redhat.com>\nCc: Minchan Kim <minchan@kernel.org>\nCc: \"H. Peter Anvin\" <hpa@zytor.com>\nCc: \"Michael S. Tsirkin\" <mst@redhat.com>\nCc: <sworddragon2@aol.com>\nCc: Arnd Bergmann <arnd@arndb.de>\nCc: Catalin Marinas <catalin.marinas@arm.com>\nCc: Chris Metcalf <cmetcalf@tilera.com>\nCc: David Howells <dhowells@redhat.com>\nCc: Geert Uytterhoeven <geert@linux-m68k.org>\nCc: Ingo Molnar <mingo@redhat.com>\nCc: Jeremy Fitzhardinge <jeremy@goop.org>\nCc: Jianguo Wu <wujianguo@huawei.com>\nCc: Joonsoo Kim <js1304@gmail.com>\nCc: Kamezawa Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>\nCc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>\nCc: Marek Szyprowski <m.szyprowski@samsung.com>\nCc: Rusty Russell <rusty@rustcorp.com.au>\nCc: Tang Chen <tangchen@cn.fujitsu.com>\nCc: Tejun Heo <tj@kernel.org>\nCc: Thomas Gleixner <tglx@linutronix.de>\nCc: Wen Congyang <wency@cn.fujitsu.com>\nCc: Will Deacon <will.deacon@arm.com>\nCc: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>\nCc: Yinghai Lu <yinghai@kernel.org>\nCc: Russell King <rmk@arm.linux.org.uk>\nSigned-off-by: Andrew Morton <akpm@linux-foundation.org>\nSigned-off-by: Linus Torvalds <torvalds@linux-foundation.org>\nGit-commit: c3d5f5f0c2bc4eabeaf49f1a21e1aeb965246cd2\nGit-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git\n[imaund@codeaurora.org: resolve merge conflcits]\nSigned-off-by: Ian Maund <imaund@codeaurora.org>\n\n(cherry picked from commit c93425e0ade40ee6bcfb61898456c73487d17672)\n\nChange-Id: I96e9c9c25d507c13d7224e6923dba0555774e689\nReviewed-on: http://gerrit.mot.com/729471\nSLTApproved: Slta Waiver <sltawvr@motorola.com>\nSME-Granted: SME Approvals Granted\nSubmit-Approved: Jira Key <jirakey@motorola.com>\nTested-by: Jira Key <jirakey@motorola.com>\nReviewed-by: Igor Kovalenko <igork@motorola.com>\nSigned-off-by: franciscofranco <franciscofranco.1990@gmail.com>","distinct":true,"url":"https://api.github.com/repos/Chairshot215/starship_kernel_moto_shamu/commits/c8e5a4b8e754eb506da55a685b3045a1b4df0f52"}]}