[LU-8265] one possible ldiskfs deadlock for rhel7 Created: 13/Jun/16  Updated: 23/Feb/17  Resolved: 23/Feb/17

Status: Closed
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Wang Shilong (Inactive) Assignee: Yang Sheng
Resolution: Duplicate Votes: 0
Labels: patch
Environment:

RHEL7


Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

This bug was originally motivated by porting project quota support to ldiskfs:

https://testing.hpdd.intel.com/test_logs/5de868b0-2377-11e6-a8f9-5254006e85c2/show_text
ext4_setattr
 down_read(&EXT4_I(inode)->i_data_sem);
 ext4_mark_inode_dirty
  ext4_expand_extra_isize
   ext4_expand_extra_isize_ea
    ext4_xattr_block_set
     down_read(&EXT4_I(inode)->i_data_sem);--->deadlock here.
     ext4_new_meta_blocks

This problem happen when we trying to upgrade ldiskfs to support project
quota which will expand ext4 inode size.

I think this problem might also happen when we try to upgrade Lustre from
rhel6 to rhel7 in the future, so we better fix it.

I also opened a redhat ticket for this.



 Comments   
Comment by Gerrit Updater [ 13/Jun/16 ]

Wang Shilong (wshilong@ddn.com) uploaded a new patch: http://review.whamcloud.com/20743
Subject: LU-8265 ldiskfs: fix one possible deadlock
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 43c31f33eb917b07c06d21c3e5eac4a2f46a28c1

Comment by Wang Shilong (Inactive) [ 13/Jun/16 ]

Tracked Bug in Redhat:

https://bugzilla.redhat.com/show_bug.cgi?id=1340582

Comment by Peter Jones [ 13/Jun/16 ]

Yang Sheng

Could you please review this patch?

Shilong

You will need to explicitly add others for them to be able to see the RH ticket

Peter

Comment by Yang Sheng [ 23/Feb/17 ]

This is duplicated with LU-9146.

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