[LU-13095] Cancel locks in ELC list when errors occurs Created: 20/Dec/19  Updated: 21/Dec/19

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

Type: Bug Priority: Minor
Reporter: Qian Yingjin Assignee: Qian Yingjin
Resolution: Unresolved Votes: 0
Labels: None

Issue Links:
Related
is related to LU-8955 Send SELinux policy info to server Resolved
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

In MDC layer, if it fails when get SELinux policy info, it should cancel all previous locks in the ELC list.



 Comments   
Comment by Gerrit Updater [ 20/Dec/19 ]

Yingjin Qian (qian@ddn.com) uploaded a new patch: https://review.whamcloud.com/37078
Subject: LU-13095 mdc: cancel locks in ELC list when errors occurs
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 76a5fe64baef553c9c6b38b1b644838d1bb4fc41

Comment by Mikhail Pershin [ 21/Dec/19 ]

Could you explain what problems appeared due to this issue? Is it lock timeouts on server and client eviction or lost lock references on client?

Comment by Qian Yingjin [ 21/Dec/19 ]

In mdc_resource_get_unused_res, we add the lock refcount in the cancel list, but when errors occurs (failed to get SELinux policy), it does not put the lock refcount...

Comment by Mikhail Pershin [ 21/Dec/19 ]

Right, that is what I was thinking.

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