locking/rwsem: Better collate rwsem_read_trylock()
mainline inclusion from mainline-v5.11-rc1 commit 3379116a category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I7A0N9 CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=3379116a0ca965b00e6522c7ea3f16c9dbd8f9f9 -------------------------------- All users of rwsem_read_trylock() do rwsem_set_reader_owned(sem) on success, move it into rwsem_read_trylock() proper. Signed-off-by: NPeter Zijlstra (Intel) <peterz@infradead.org> Link: https://lkml.kernel.org/r/20201207090243.GE3040@hirez.programming.kicks-ass.netSigned-off-by: NYang Yingliang <yangyingliang@huawei.com> (cherry picked from commit aa6c618f)
Showing
想要评论请 注册 或 登录