Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-14000

PCC: PCC attach failed when open with O_DIRECT mode

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • None
    • None
    • None
    • 3
    • 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.

      Attachments

        Activity

          [LU-14000] PCC: PCC attach failed when open with O_DIRECT mode

          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

          gerrit Gerrit Updater added a comment - 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

          People

            qian_wc Qian Yingjin
            qian_wc Qian Yingjin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: