commit | f7a4df16f6c2f28fc44dd3612103fbaadba2591f | [log] [tgz] |
---|---|---|
author | Rajesh Kemisetti <rajeshk@codeaurora.org> | Tue Apr 30 19:04:30 2019 +0530 |
committer | Archana Sriram <apsrir@codeaurora.org> | Wed May 08 10:51:53 2019 +0530 |
tree | e0d8ee58553cda920d4bfa0215590a009e6993c5 | |
parent | d023ca2439ace733ccfd3bc74c42bab369a15459 [diff] |
msm: kgsl: Fix race condition while making page as dirty set_page_dirty() is racy if the caller has no reference against page->mapping->host, and if the page is unlocked. This is because another CPU could truncate the page off the mapping and then free the mapping. Use set_page_dirty_lock() to avoid this race condition. Change-Id: I517fb9aee66560618c7676b311368f7a7498011f Signed-off-by: Rajesh Kemisetti <rajeshk@codeaurora.org> Signed-off-by: Archana Sriram <apsrir@codeaurora.org>