[LU-13190] I/O can fail with -EBADF if fresh client has no connection to OST Created: 02/Feb/20  Updated: 20/Feb/20  Resolved: 20/Feb/20

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

Type: Bug Priority: Minor
Reporter: Alex Zhuravlev Assignee: Alex Zhuravlev
Resolution: Fixed Votes: 0
Labels: None

Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

otherwise it's possible to get -EBADF:

  • client sends open|create intent before a connection to OST is established
  • MDS replies back without UPDATE bit in LDLM lock, but with the layout
    (MDS doesn't send OBD_MD_FLMODEASIZE and back
  • client's cl_default_mds_easize is still 0
  • client sends getattr intent with 0-size buffer for EA
  • MDS replies with no layout and LAYOUT bit
  • client sets local layout to EMPTY
  • all subsequent I/O fails with -EBADF



 Comments   
Comment by Gerrit Updater [ 02/Feb/20 ]

Alex Zhuravlev (bzzz@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/37400
Subject: LU-13190 mds: send mbo_max_mdsize in open intent reply
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 5592eb9b6b67bd602b0f1cc0c5b08b79ae45e891

Comment by Gerrit Updater [ 20/Feb/20 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/37400/
Subject: LU-13190 mds: send mbo_max_mdsize in open intent reply
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 0a80afc58b4c64f3e7478ccfe1949ba30a28dfa3

Comment by Peter Jones [ 20/Feb/20 ]

Landed for 2.14

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