[LU-267] Kernel race could cause LU-118, clear_inode: BUG_ON(inode->i_data.nrpages) Created: 03/May/11  Updated: 11/Oct/17  Resolved: 11/Oct/17

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.1.0, Lustre 1.8.6
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Cory Spitz Assignee: WC Triage
Resolution: Cannot Reproduce Votes: 0
Labels: None

Severity: 3
Bugzilla ID: 24,303
Rank (Obsolete): 10346

 Description   

LU-118 is tracking b1_8 and master Lustre fixes for the cause of the kernel BUG_ON(inode->i_data.nrpages) in clear_inode().

There is concern that a kernel race needs to be fixed there as well to completely tie off the issue. This ticket should track the kernel solution. Ideally, we'd get this identified so that the upstream kernel maintainers can adopt a fix that they like and Lustre will not need to carry a kernel patch around for this bug.

References:
> Lustre Bug 24303
> http://jira.whamcloud.com/browse/LU-118?focusedCommentId=10993&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#action_10993
> Jinshan also added, "Then let's take an effort to make up a test case so as to reproduce it in linux kernel. I think there would be a code path in the linux kernel is that when vmscan is stealing a page(shrink_page_list->remove_mapping->__remove_from_page_cache), and meanwhile the inode is being forgotten(iput_final -> ... ->generic_forget_inode).


Generated at Sat Feb 10 01:05:22 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.