GitHub PushEvent at 2014-05-28 02:39:51
Repository: BroodROM_kernel_huawei_honor
Actor: desalesouche
Payload: {"shas":[["0a8aa8965a84e9c985698659f116951cd243b963","8f999d7dfae48e670d94b027d3cb84bc00ed943c@gmail.com","writeback: Fix occasional slow sync(1) \n\nIn case when system contains no dirty pages, wakeup_flusher_threads()\r\nwill submit WB_SYNC_NONE writeback for 0 pages so wb_writeback() exits\r\nimmediately without doing anything. Thus sync(1) will write all the\r\ndirty inodes from a WB_SYNC_ALL writeback pass which is slow.\r\n\r\nFix the problem by using get_nr_dirty_pages() in\r\nwakeup_flusher_threads() instead of calculating number of dirty pages\r\nmanually. That function also takes number of dirty inodes into account.\r\n\r\nCC: stable@vger.kernel.org\r\nReported-by: Paul Taysom <taysom@chromium.org>\r\nSigned-off-by: Jan Kara <jack@suse.cz>\r\nSigned-off-by: Cristoforo Cataldo <cristoforo.cataldo@gmail.com>\r\nSigned-off-by: Francisco Franco <franciscofranco.1990@gmail.com>","desalesouche",true]],"size":1,"ref":"refs/heads/master","head":"0a8aa8965a84e9c985698659f116951cd243b963"}