[LU-13121] ll_update_lsm_md() may deadlock Created: 10/Jan/20 Updated: 10/Feb/20 Due: 10/May/20 Resolved: 23/Jan/20 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | Lustre 2.12.0, Lustre 2.13.0 |
| Fix Version/s: | Lustre 2.14.0, Lustre 2.12.4 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Lai Siyao | Assignee: | Lai Siyao |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Severity: | 3 | ||||||||
| Rank (Obsolete): | 9223372036854775807 | ||||||||
| Description |
|
ll_update_lsm_md() down_write() if lli->lli_lsm_md is NULL, and tries to initialize it, but if a concurrent lookup initialized lli->lli_lsm_md after this check and before taking write lock, it will up_read(), so the write lock is not released, therefore subsequent lookup will deadlock on this. |
| Comments |
| Comment by Gerrit Updater [ 10/Jan/20 ] |
|
Lai Siyao (lai.siyao@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/37182 |
| Comment by Gerrit Updater [ 23/Jan/20 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/37182/ |
| Comment by Peter Jones [ 23/Jan/20 ] |
|
Landed for 2.14 |
| Comment by Gerrit Updater [ 25/Jan/20 ] |
|
Lai Siyao (lai.siyao@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/37325 |
| Comment by Gerrit Updater [ 08/Feb/20 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/37325/ |