log: postpone log scrub to respond to write earlier#387
Conversation
JIRA: RTOS-430 Change-Id: Idec0ff30a8430c9b8899293664b361e7f32f938b
agkaminski
left a comment
There was a problem hiding this comment.
How is it blocked here? log_scrub only does proc_respond, it doesn't block in any way (except on a potential lock acquisition, but we need to get it anyway)
It locks this lock second time and wakes up reader threads. If readers threads have same or higher priority than message handler than they could be scheduled before response is sent. |
|
If read has higher priority it should be scheduled instead. I agree on the lock though, it should could be taken once for both operations instead. How about moving scrub after common |
This can improve relatively slow klog write times. It is still important to know that logging from threads with higher priority than usrv can result in priority inversion.
Description
Motivation and Context
Types of changes
How Has This Been Tested?
Checklist:
Special treatment