[LU-14000] PCC: PCC attach failed when open with O_DIRECT mode Created: 29/Sep/20  Updated: 29/Sep/20

Status: Open
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Qian Yingjin Assignee: Qian Yingjin
Resolution: Unresolved Votes: 0
Labels: None

Issue Links:
Related
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

When attach a file at file open with direct mode, the kernel data copying from Lustre file to PCC copy will result in -EFAULT error as the buffer is allocated in the kernel, not from user space.
Thus we need unmask the O_DIRECT flag from the file handle during data copying, after finished the data copying, restore the flag of the file handle.



 Comments   
Comment by Gerrit Updater [ 29/Sep/20 ]

Yingjin Qian (qian@ddn.com) uploaded a new patch: https://review.whamcloud.com/40082
Subject: LU-14000 pcc: unmask O_DIRECT open flag during attach
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: f0e6c251bde21084b9405cb4288f548ca67e8bdf

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