diff options
author | pan xinhui <[email protected]> | 2016-07-18 17:47:39 +0800 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2016-08-10 14:13:27 +0200 |
commit | 2db34e8bf9a22f4e38b29deccee57457bc0e7d74 (patch) | |
tree | 69f62c648841189e26d1132e65ac465455b55abf /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | a2071cd765637002523798358d2ca441306d708b (diff) |
locking/qrwlock: Fix write unlock bug on big endian systems
This patch aims to get rid of endianness in queued_write_unlock(). We
want to set __qrwlock->wmode to NULL, however the address is not
&lock->cnts in big endian machine. That causes queued_write_unlock()
write NULL to the wrong field of __qrwlock.
So implement __qrwlock_write_byte() which returns the correct
__qrwlock->wmode address.
Suggested-by: Peter Zijlstra (Intel) <[email protected]>
Signed-off-by: Pan Xinhui <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Paul E. McKenney <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions