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

simplify project transfer codes

    Details

    • Severity:
      3
    • Rank (Obsolete):
      9223372036854775807

      Description

      Currently, osd-ldiskfs call __ldiskfs_ioctl_project() to transfer project quota which is user ioctl
      for ext4, it will start transaction and reserve credits, this is not right logic with Lustre.

      Lustre have started a transaction handle and credits have been reserved during declare phase,
      so calling __ldiskfs_ioctl_project() will cause nested handle starting, which is not a problem for jbd2
      because it will attach current thread's handle if transaction have been started, but in this case it will ignore credits reservation.

      Also Lustre don't need inode mutex protection for project transfer, Lustre have reserved enough
      credits for project transfer, we need fix agent inode transfering.

        Attachments

          Activity

            People

            • Assignee:
              hongchao.zhang Hongchao Zhang
              Reporter:
              wangshilong Wang Shilong (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: