Bug 185 - [ANCK 4.19] anolis: kernel/memremap: only wakeup is needed for MEMORY_DEVICE_FSDAX when put_page
Summary: [ANCK 4.19] anolis: kernel/memremap: only wakeup is needed for MEMORY_DEVICE_...
Status: RESOLVED FIXED
Alias: None
Product: ANCK 4.19 Dev
Classification: ANCK
Component: fs (show other bugs) fs
Version: 4.19-026.x
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: gaoxiang
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-23 13:31 UTC by gaoxiang
Modified: 2022-08-16 11:48 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gaoxiang alibaba_cloud_group 2021-12-23 13:31:18 UTC
This fixes a race issue because of __ClearPageWaiters being
not atomic,

t1                            t2
__ClearPageWaiters         lock_page
  p = page->flags
                           unlock_page
  p &= ~mask
  // page remains locked
Comment 1 gaoxiang alibaba_cloud_group 2021-12-29 16:29:02 UTC
already merged.