Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1659607 > unrolled thread
| Started by | Chao Yu <yuchao0@huawei.com> |
|---|---|
| First post | 2017-06-07 11:50 +0200 |
| Last post | 2017-06-07 11:50 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH v2 1/2] f2fs: dax: fix races between page faults and truncating pages Chao Yu <yuchao0@huawei.com> - 2017-06-07 11:50 +0200
| From | Chao Yu <yuchao0@huawei.com> |
|---|---|
| Date | 2017-06-07 11:50 +0200 |
| Subject | Re: [PATCH v2 1/2] f2fs: dax: fix races between page faults and truncating pages |
| Message-ID | <tPFLb-4SX-3@gated-at.bofh.it> |
On 2017/5/18 11:06, sunqiuyang wrote: > From: Qiuyang Sun <sunqiuyang@huawei.com> > > Currently in F2FS, page faults and operations that truncate the pagecahe > or data blocks, are completely unsynchronized. This can result in page > fault faulting in a page into a range that we are changing after > truncating, and thus we can end up with a page mapped to disk blocks that > will be shortly freed. Filesystem corruption will shortly follow. > > This patch fixes the problem by creating new rw semaphore i_mmap_sem in > f2fs_inode_info and grab it for functions removing blocks from extent tree > and for read over page faults. The mechanism is similar to that in ext4. > > Signed-off-by: Qiuyang Sun <sunqiuyang@huawei.com> Reviewed-by: Chao Yu <yuchao0@huawei.com>
Back to top | Article view | linux.kernel
csiph-web