lkml.org 
[lkml]   [2020]   [Oct]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: kernel BUG at mm/page-writeback.c:2241 [ BUG_ON(PageWriteback(page); ]
On Wed, Oct 21, 2020 at 08:30:18PM -0400, Qian Cai wrote:
> Today's linux-next starts to trigger this wondering if anyone has any clue.

I've seen that occasionally too. I changed that BUG_ON to VM_BUG_ON_PAGE
to try to get a clue about it. Good to know it's not the THP patches
since they aren't in linux-next.

I don't understand how it can happen. We have the page locked, and then we do:

if (PageWriteback(page)) {
if (wbc->sync_mode != WB_SYNC_NONE)
wait_on_page_writeback(page);
else
goto continue_unlock;
}

VM_BUG_ON_PAGE(PageWriteback(page), page);

Nobody should be able to put this page under writeback while we have it
locked ... right? The page can be redirtied by the code that's supposed
to be writing it back, but I don't see how anyone can make PageWriteback
true while we're holding the page lock.

\
 
 \ /
  Last update: 2020-10-22 02:50    [W:0.165 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site