Commit a5e4cbf
Souvik Roy
Remove redundant async call in FRU collection threads (#588)
This commit removes the redundant std:async call in the detached thread
launched for parsing and publishing the VPD for an individual FRU.
Since we have a dedicated detached thread for each FRU, we can do VPD
parse and publish in a synchronous manner from the detached thread
itself, instead of launching a asynchronous task which adds unnecessary
performance cost. This commit also handles any exception thrown while
launching the detached thread for a FRU. Incase launching detached
thread for a FRU fails, we log a PEL and continue launching threads for
other FRUs.
This commit addresses issue #558.
Test:
```
1. Install bitbaked image on Everest (ever6bmc)
2. After initial boot, check:
- BMC State Ready
- vpd-manager's CollectionStatus property should be "Completed"
busctl get-property com.ibm.VPD.Manager
/com/ibm/VPD/Manager com.ibm.VPD.Manager
CollectionStatus
s "Completed"
- vpd-manager status should be running with no restarts
- vpd-manager should have only 1 thread running:
check "ls -la /proc/<vpd-manager PID>/task"
3. Reboot the BMC several times and repeat Step 2.
```
Change-Id: I603c64dc9b5057429a2288f0edfde6086755b851
Signed-off-by: Souvik Roy <[email protected]>1 parent 676ae9e commit a5e4cbf
2 files changed
+24
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1505 | 1505 | | |
1506 | 1506 | | |
1507 | 1507 | | |
1508 | | - | |
1509 | | - | |
1510 | | - | |
1511 | | - | |
1512 | | - | |
| 1508 | + | |
| 1509 | + | |
| 1510 | + | |
| 1511 | + | |
1513 | 1512 | | |
1514 | | - | |
1515 | | - | |
1516 | | - | |
1517 | | - | |
| 1513 | + | |
| 1514 | + | |
| 1515 | + | |
1518 | 1516 | | |
1519 | | - | |
1520 | | - | |
1521 | | - | |
1522 | | - | |
1523 | | - | |
| 1517 | + | |
| 1518 | + | |
| 1519 | + | |
| 1520 | + | |
| 1521 | + | |
| 1522 | + | |
| 1523 | + | |
| 1524 | + | |
| 1525 | + | |
| 1526 | + | |
| 1527 | + | |
| 1528 | + | |
| 1529 | + | |
| 1530 | + | |
| 1531 | + | |
| 1532 | + | |
1524 | 1533 | | |
1525 | 1534 | | |
1526 | 1535 | | |
| |||
0 commit comments