Bug 206211
Summary: | BUG_ON() assertion fails in __do_readpage() fs/btrfs/extent_io.c. | ||
---|---|---|---|
Product: | File System | Reporter: | Ryusuke Goto (ryusuke1925) |
Component: | btrfs | Assignee: | BTRFS virtual assignee (fs_btrfs) |
Status: | RESOLVED CODE_FIX | ||
Severity: | normal | CC: | fdmanana, marcos.souza.org |
Priority: | P1 | ||
Hardware: | x86-64 | ||
OS: | Linux | ||
Kernel Version: | 5.5-rc5 | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Attachments: |
experiments text
Reproduction code Reproduction code |
Description
Ryusuke Goto
2020-01-15 06:09:25 UTC
Created attachment 286821 [details]
experiments text
Created attachment 286823 [details]
Reproduction code
Created attachment 286825 [details]
Reproduction code
Hi, Thanks for the analysis! I had someone else report this to me some time ago as well, precisely using java and ehcache as well. Your analysis is mostly correct. The problem can only happen with concurrent reads (readpage) and fsync. All other interactions are protected by the file range locks. I sent a patch earlier today for this: https://patchwork.kernel.org/patch/11359975/ Thanks for the report and analysis. I'm glad to help! (In reply to Filipe David Manana from comment #4) > Hi, > > Thanks for the analysis! > > I had someone else report this to me some time ago as well, precisely using > java and ehcache as well. > > Your analysis is mostly correct. The problem can only happen with concurrent > reads (readpage) and fsync. All other interactions are protected by the file > range locks. > > I sent a patch earlier today for this: > > https://patchwork.kernel.org/patch/11359975/ > > Thanks for the report and analysis. (In reply to Filipe David Manana from comment #4) > Hi, > > Thanks for the analysis! > > I had someone else report this to me some time ago as well, precisely using > java and ehcache as well. > > Your analysis is mostly correct. The problem can only happen with concurrent > reads (readpage) and fsync. All other interactions are protected by the file > range locks. > > I sent a patch earlier today for this: > > https://patchwork.kernel.org/patch/11359975/ > > Thanks for the report and analysis. This commit was merged in commit 713db356041071d16360e82247de3107ec9ed57f Merge: 288b27a06e4f 1b9867eb6120 Author: Linus Torvalds <torvalds@linux-foundation.org> Date: Sun Feb 16 11:43:45 2020 -0800 Merge tag 'for-5.6-rc1-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux Closing as fixed. |