[LU-3157] A not locked mutex can be unlocked in ll_file_open() Created: 11/Apr/13  Updated: 12/Sep/13  Resolved: 03/Jun/13

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.4.1, Lustre 2.5.0

Type: Bug Priority: Critical
Reporter: Dmitry Eremin (Inactive) Assignee: Dmitry Eremin (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Severity: 3
Rank (Obsolete): 7653

 Description   

In case of memory pressure a not locked mutex can be unlocked in function ll_file_open(). This is not allowed and subsequent behavior is not defined.

/***

  • mutex_unlock - release the mutex
  • @lock: the mutex to be released
  • Unlock a mutex that has been locked by this task previously.
  • This function must not be used in interrupt context. Unlocking
  • of a not locked mutex is not allowed.
  • This function is similar to (but not equivalent to) up().
    */


 Comments   
Comment by Dmitry Eremin (Inactive) [ 11/Apr/13 ]

Patch set is http://review.whamcloud.com/6028

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