Repository navigation
Commit ec2a834
Use test_bit for RPC_PRIVATE in homa_rpc_get_info
* RPC_PRIVATE is a bit number (2), set with set_bit, but
homa_rpc_get_info tested it as a mask, which checks bit 1
(APP_NEEDS_LOCK). HOMAIOCINFO therefore never reported
HOMA_RPC_PRIVATE for private RPCs, and reported it for RPCs whose
lock was being requested by the application.
* The existing test set the flag with |=, which hid the bug; use
set_bit and add a test that APP_NEEDS_LOCK alone isn't reported.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 4bd0275 commit ec2a834
2 files changed
Lines changed: 13 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
844 | 844 | | |
845 | 845 | | |
846 | 846 | | |
847 | | - | |
| 847 | + | |
848 | 848 | | |
849 | 849 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1572 | 1572 | | |
1573 | 1573 | | |
1574 | 1574 | | |
1575 | | - | |
| 1575 | + | |
1576 | 1576 | | |
1577 | 1577 | | |
1578 | 1578 | | |
| 1579 | + | |
| 1580 | + | |
| 1581 | + | |
| 1582 | + | |
| 1583 | + | |
| 1584 | + | |
| 1585 | + | |
| 1586 | + | |
| 1587 | + | |
| 1588 | + | |
| 1589 | + | |
0 commit comments