[LU-17444] llapi_open_by_fid leaks mount point fd Created: 18/Jan/24  Updated: 23/Jan/24  Resolved: 23/Jan/24

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.16.0

Type: Bug Priority: Minor
Reporter: Dominique Martinet Assignee: Dominique Martinet
Resolution: Fixed Votes: 0
Labels: None

Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

Commit 7154244354e3 ("LU-16786 utils: Replace open call to WANT_FD") replaced get_root_path() with llapi_root_path_open(), but the later always opens or dup a fd and requires a close, so worklaods that use open by fid would very quickly run out of fd because of many many dup() calls on the mnt fd



 Comments   
Comment by Gerrit Updater [ 18/Jan/24 ]

"Dominique Martinet <asmadeus@codewreck.org>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/53736
Subject: LU-17444 utils: fix fd leak after conversion to llapi_root_path_open
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: f96044826d2f7424e41b846fc5b2dc3dc0d040e2

Comment by Gerrit Updater [ 23/Jan/24 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/53736/
Subject: LU-17444 utils: fix fd leak after conversion to llapi_root_path_open
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: d30e1dc85834cb3f7985da0c50f5fda5c7c5f0d9

Comment by Peter Jones [ 23/Jan/24 ]

Landed for 2.16

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