Skip to content

Commit

Permalink
Merge pull request #128 from Leo-Yan/support_firmware_updating
Browse files Browse the repository at this point in the history
ilm: raid_lock: Handle for drive firmware updating
  • Loading branch information
Leo Yan authored Mar 10, 2021
2 parents 947fcca + c7ba6cd commit 079e975
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/raid_lock.c
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,17 @@ struct _raid_state_transition state_transition[] = {
.next = IDM_FAULT,
},

/*
* If the lock has been acquired, afterwards, if the lock entry has
* been removed from the drive firwarem, convert to the IDM_INIT state,
* try to acquire the mutex again.
*/
{
.curr = IDM_LOCK,
.result = -ENOENT,
.next = IDM_INIT,
},

/*
* This is a special case which is used for the normal unlock flow.
*/
Expand Down

0 comments on commit 079e975

Please sign in to comment.