[LU-6600] Race lustre_profile_list Created: 14/May/15  Updated: 19/Mar/19  Resolved: 26/Aug/15

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

Type: Bug Priority: Critical
Reporter: Hiroya Nozaki Assignee: Jian Yu
Resolution: Fixed Votes: 0
Labels: patch

Issue Links:
Related
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

running multiple mounts at the same time results in lustre_profile_list corruption when adding a new profile. So I added a spin lock to protect the list.



 Comments   
Comment by Hiroya Nozaki [ 14/May/15 ]

Now I'm in trouble with my Gerrit's account. so please wait for the patch for a while

Comment by Doug Oucharek (Inactive) [ 14/May/15 ]

Hi YuJian,

Can you help ensure this patch gets through.

Doug

Comment by Jian Yu [ 14/May/15 ]

Sure, Doug, will do.

Comment by Gerrit Updater [ 21/May/15 ]

Hiroya Nozaki (nozaki.hiroya@jp.fujitsu.com) uploaded a new patch: http://review.whamcloud.com/14896
Subject: LU-6600 obdclass: race lustre_profile_list
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: fc5cb18191abc27864f4cf55746305a54995ebff

Comment by Hiroya Nozaki [ 21/May/15 ]

You can easily cause OS-panic ralated to this ticket following:
mount and umount the same client with different directory at the same time, like ...

  1. lfs df
    UUID 1K-blocks Used Available Use% Mounted on
    lustre-MDT0000_UUID 149944 18092 122128 13% /mnt/lustre[MDT:0]
    lustre-OST0000_UUID 187464 25780 151260 15% /mnt/lustre[OST:0]
    lustre-OST0001_UUID 187464 42168 131832 24% /mnt/lustre[OST:1]
    filesystem summary: 374928 67948 283092 19% /mnt/lustre

#mount -t lustre host@nettype:/lustre /mnt/lustre2 & umount /mnt/lustre &

you can see OS panic in several times

Comment by Gerrit Updater [ 05/Aug/15 ]

Hiroya Nozaki (nozaki.hiroya@jp.fujitsu.com) uploaded a new patch: http://review.whamcloud.com/15855
Subject: LU-6600 obdclass: race lustre_profile_list
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 9370c3915ecafa9706cce9331f62e5e5fbbb0eca

Comment by Gerrit Updater [ 26/Aug/15 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/14896/
Subject: LU-6600 obdclass: race lustre_profile_list
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: eba2a78067ef87a56242e47e626c584624fb1e34

Comment by Joseph Gmitter (Inactive) [ 26/Aug/15 ]

Landed for 2.8.

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