[LU-9874] simplify project transfer codes Created: 13/Aug/17  Updated: 21/Jan/19  Resolved: 28/Aug/17

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.11.0
Fix Version/s: Lustre 2.11.0, Lustre 2.10.7

Type: Bug Priority: Minor
Reporter: Wang Shilong (Inactive) Assignee: Hongchao Zhang
Resolution: Fixed Votes: 0
Labels: patch

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.



 Comments   
Comment by Gerrit Updater [ 13/Aug/17 ]

Wang Shilong (wshilong@ddn.com) uploaded a new patch: https://review.whamcloud.com/28510
Subject: LU-9874 osd-ldiskfs: simplify project transfer codes
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: d694df17d5c4f2ed639ef1adbb91b7281037ed3f

Comment by Peter Jones [ 13/Aug/17 ]

Hongchao

Can you please review these proposed changes?

Peter

Comment by Gerrit Updater [ 28/Aug/17 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/28510/
Subject: LU-9874 osd-ldiskfs: simplify project transfer codes
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: a9d3c9ba5360f46b2eaa5732a98c0ee836a927df

Comment by Peter Jones [ 28/Aug/17 ]

Landed for 2.11

Comment by Gerrit Updater [ 04/May/18 ]

Bob Glossman (bob.glossman@intel.com) uploaded a new patch: https://review.whamcloud.com/32297
Subject: LU-9874 osd-ldiskfs: simplify project transfer codes
Project: fs/lustre-release
Branch: b2_10
Current Patch Set: 1
Commit: 67e97c16dc412d453ae372136cb5fd54acb2804e

Comment by Gerrit Updater [ 19/Jan/19 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/32297/
Subject: LU-9874 osd-ldiskfs: simplify project transfer codes
Project: fs/lustre-release
Branch: b2_10
Current Patch Set:
Commit: 53cde2399719b56817bca26d6895a114a6feed1d

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