[LU-14047] change EWOULDBLOCK to EAGAIN, add EWOULDBLOCK to spelling.txt Created: 20/Oct/20  Updated: 26/Feb/21  Resolved: 26/Feb/21

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

Type: Improvement Priority: Minor
Reporter: John Hammond Assignee: John Hammond
Resolution: Fixed Votes: 0
Labels: easy

Rank (Obsolete): 9223372036854775807

 Description   

It's possible to find places in the clio stack where rc is set to -EWOULDBLOCK and later compared to -EAGAIN. And if we're looking at the logs and wonder where rc=-11 came from then we much search for both constants. This is confusing and makes analysis harder than it should be.

We should change all EWOULDBLOCK instances to EAGAIN and add EWOULDBLOCK||EAGAIN to spelling.txt.

fs/lustre-release$ git grep EAGAIN | wc -l
     272
fs/lustre-release$ git grep EWOULDBLOCK | wc -l
      35


 Comments   
Comment by Gerrit Updater [ 20/Oct/20 ]

John L. Hammond (jhammond@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/40307
Subject: LU-14047 lustre: change EWOULDBLOCK to EAGAIN
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 9002e4aa997bd5547d76ee7911924f531c08eecb

Comment by Gerrit Updater [ 26/Feb/21 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/40307/
Subject: LU-14047 lustre: change EWOULDBLOCK to EAGAIN
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: a7f48e6c15e28617793d89958c79e9ed8cb73e65

Comment by Peter Jones [ 26/Feb/21 ]

Landed for 2.15

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