-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rwsem: steal writing sem for better performance
Commit 5a50508 changes to rwsem from mutex, caused aim7 fork_test performance to dropped 50%. Yuanhan liu did an analysis, found it was caused by strict sequential writing. Ingo suggest stealing sem writing from front task in wait queue. https://lkml.org/lkml/2013/1/29/84 So does this patch. In this patch, I just allow write stealing to happen when the first waiter is also writer. The performance fully is now fully recovered. Reported-by: lkp@linux.intel.com Cc: Ingo Molnar <mingo@kernel.org> Signed-off-by: Alex Shi <alex.shi@intel.com>
- Loading branch information
Showing
1 changed file
with
46 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters