[LU-1877] BUG: spinlock bad magic on CPU#0, mdt00_002/4625 on mount Created: 10/Sep/12  Updated: 02/Jan/13  Resolved: 02/Jan/13

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

Type: Bug Priority: Major
Reporter: Oleg Drokin Assignee: Alex Zhuravlev
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Related
is related to LU-1823 sanity/103: slab corruption Resolved
Severity: 3
Rank (Obsolete): 4443

 Description   

I tried current master (at ad173173fe6b67e41c2c232a15c5eb6939836871 hash) with fully debug-enabled kernel today and got this on mount (just sh llmount.sh):

[ 1311.301072] Lustre: lustre-OST0001: received MDS connection from 0@lo
[ 1311.302986] Lustre: MDS mdd_obd-lustre-MDT0000: lustre-OST0001_UUID now active, resetting orphans
[ 1316.301604] BUG: spinlock bad magic on CPU#0, mdt00_002/4625 (Not tainted)
[ 1316.303829]  lock: ffff88028f47c648, .magic: 00000000, .owner: <none>/-1, .owner_cpu: 0
[ 1316.305413] Pid: 4625, comm: mdt00_002 Not tainted 2.6.32-debug #3
[ 1316.307102] Call Trace:
[ 1316.308737]  [<ffffffff8128266a>] ? spin_bug+0xaa/0x100
[ 1316.309514]  [<ffffffff81282805>] ? _raw_spin_lock+0xa5/0x180
[ 1316.310382]  [<ffffffff814fc59e>] ? _spin_lock+0xe/0x10
[ 1316.311177]  [<ffffffffa0c06fc4>] ? mdt_statfs+0x2b4/0x4b0 [mdt]
[ 1316.312103]  [<ffffffffa0bf8d42>] ? mdt_handle_common+0x922/0x1740 [mdt]
[ 1316.313163]  [<ffffffffa0bf9c35>] ? mdt_regular_handle+0x15/0x20 [mdt]
[ 1316.314186]  [<ffffffffa056986f>] ? ptlrpc_server_handle_request+0x44f/0xee0 [ptlrpc]
[ 1316.315480]  [<ffffffffa026266e>] ? cfs_timer_arm+0xe/0x10 [libcfs]
[ 1316.317901]  [<ffffffffa0562711>] ? ptlrpc_wait_event+0xb1/0x2a0 [ptlrpc]
[ 1316.318913]  [<ffffffff81051f73>] ? __wake_up+0x53/0x70
[ 1316.319711]  [<ffffffffa056c3de>] ? ptlrpc_main+0xaee/0x1800 [ptlrpc]
[ 1316.320698]  [<ffffffffa056b8f0>] ? ptlrpc_main+0x0/0x1800 [ptlrpc]
[ 1316.321655]  [<ffffffff8100c14a>] ? child_rip+0xa/0x20
[ 1316.322448]  [<ffffffffa056b8f0>] ? ptlrpc_main+0x0/0x1800 [ptlrpc]
[ 1316.323479]  [<ffffffffa056b8f0>] ? ptlrpc_main+0x0/0x1800 [ptlrpc]
[ 1316.324444]  [<ffffffff8100c140>] ? child_rip+0x0/0x20
[ 1316.386451] Lustre: Mounted lustre-client


 Comments   
Comment by Andreas Dilger [ 10/Sep/12 ]

Link to LU-1823, which is enabling the CONFIG_DEBUG options for review testing kernels.

Comment by Oleg Drokin [ 10/Sep/12 ]

This was introduced by recent landing of http://review.whamcloud.com/3780 (LU-1304).

mdt_osfs_lock is added, but never initialized. should be trivial to fix.

Comment by Alex Zhuravlev [ 10/Sep/12 ]

thanks, I'll cook the fix.

Comment by Alex Zhuravlev [ 11/Sep/12 ]

http://review.whamcloud.com/#change,3946

Comment by Peter Jones [ 02/Jan/13 ]

Landed for 2.4

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