Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rwsem: avoid taking wait_lock in rwsem_down_write_failed
In rwsem_down_write_failed(), if there are active locks after we wake up (i.e. the lock got stolen from us), skip taking the wait_lock and go back to sleep immediately. Signed-off-by: Michel Lespinasse <[email protected]> Reviewed-by: Peter Hurley <[email protected]> Acked-by: Davidlohr Bueso <[email protected]> Acked-by: Rik van Riel <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information