[LU-1887] Shrinking cur_grant_byte LBUG Created: 11/Sep/12  Updated: 17/Feb/13  Resolved: 17/Feb/13

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.1.2, Lustre 2.1.3
Fix Version/s: Lustre 2.4.0, Lustre 2.1.5

Type: Bug Priority: Minor
Reporter: Alexandre Louvet Assignee: Lai Siyao
Resolution: Fixed Votes: 0
Labels: None

Severity: 3
Rank (Obsolete): 8139

 Description   

Echoing 0 to osc/cur_grant_bytes result to the following LBUG

  1. echo 0 > /proc/fs/lustre/osc/scratch-OST0003-osc-ffff88004297a000/cur_grant_bytes

Lustre: Mounted scratch-client
LustreError: 4817:0:(layout.c:1528:__req_capsule_offset()) ASSERTION( offset > 0 ) failed: OST_SET_GRANT_INFO:setinfo_val, off=0, loc=0
LustreError: 4817:0:(layout.c:1528:__req_capsule_offset()) LBUG
Pid: 4817, comm: bash

Call Trace:
[<ffffffffa03ab7f5>] libcfs_debug_dumpstack+0x55/0x80 [libcfs]
[<ffffffffa03abe07>] lbug_with_loc+0x47/0xb0 [libcfs]
[<ffffffffa063c39b>] __req_capsule_offset+0x7b/0xc0 [ptlrpc]
[<ffffffffa05ff05c>] ? ptlrpc_request_alloc_internal+0xac/0x330 [ptlrpc]
[<ffffffffa063c6de>] req_capsule_set_size+0x6e/0x1c0 [ptlrpc]
[<ffffffffa083f89b>] osc_set_info_async+0xeb/0xa00 [osc]
[<ffffffffa084b460>] osc_shrink_grant_to_target+0x270/0x490 [osc]
[<ffffffffa084efbc>] osc_wr_cur_grant_bytes+0xdc/0x110 [osc]
[<ffffffffa0487fdb>] lprocfs_fops_write+0x7b/0xa0 [obdclass]
[<ffffffff811e0c0e>] proc_reg_write+0x7e/0xc0
[<ffffffff8117b198>] vfs_write+0xb8/0x1a0
[<ffffffff810d6b12>] ? audit_syscall_entry+0x272/0x2a0
[<ffffffff8117bbb1>] sys_write+0x51/0x90
[<ffffffff8100b0f2>] system_call_fastpath+0x16/0x1b



 Comments   
Comment by Peter Jones [ 11/Sep/12 ]

Hongchao

Could you please look into this one?

Thanks

Peter

Comment by Peter Jones [ 15/Oct/12 ]

Lai

Could you please look into this one?

Thanks

Peter

Comment by Lai Siyao [ 15/Oct/12 ]

Review is on: http://review.whamcloud.com/#change,4269

Comment by Lai Siyao [ 16/Oct/12 ]

Patch for master is at: http://review.whamcloud.com/#change,4277

Comment by Peter Jones [ 17/Feb/13 ]

Landed for 2.1.5 and 2.4

Generated at Sat Feb 10 01:20:33 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.