[LU-12652] osd_attr_set() fails with ENOSPC on linux-4.18 Created: 09/Aug/19  Updated: 12/Nov/21  Resolved: 14/May/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
Environment:

ldiskfs, 4.18


Issue Links:
Related
is related to LU-15083 osp_last_used_init() returns -28 Resolved
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

few different tests can fail with the following symptom:
Lustre: 9035:0:(osd_handler.c:3066:osd_attr_set()) lustre-MDT0000: set [0x200002342:0x35:0x0] lma flags 28 failed: rc = -28
LustreError: 9035:0:(out_lib.c:629:out_tx_attr_set_undo()) lustre-MDT0000-osd: attr set undo [0x200000007:0x1:0x0] unimplemented yet!: rc = -524
LustreError: 9035:0:(out_lib.c:1190:out_tx_index_delete_undo()) lustre-MDT0000-osd: Oops, can not rollback index_delete yet: rc = -524
Lustre: DEBUG MARKER: sanity test_31f: @@@@@@ FAIL: first of /mnt/lustre/d31f

this is because ext4 in linux-4.18 has the following check:

                if (!ldiskfs_handle_has_enough_credits(handle, credits)) {
                        error = -ENOSPC;
                        goto cleanup;

while ext4's credit calculation is way too pessimistic.



 Comments   
Comment by Gerrit Updater [ 09/Aug/19 ]

Alex Zhuravlev (bzzz@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/35750
Subject: LU-12652 ldiskfs: disable credits check in 4.18
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: cbdd2b877f334d712227ef8918afa6da79b94abc

Comment by Jian Yu [ 07/Feb/20 ]

sanityn test 92 also failed with this issue on RHEL 8.1 client and server:
https://testing.whamcloud.com/test_sets/c8a2e42c-4967-11ea-b58e-52540065bddc

Comment by Gerrit Updater [ 14/May/20 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/35750/
Subject: LU-12652 ldiskfs: disable credits check in 4.18
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 278fa1fb23d293f6dc9add95cc0f1178af91a7db

Comment by Peter Jones [ 14/May/20 ]

Landed for 2.14

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