[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1460541432-21631-1-git-send-email-mhocko@kernel.org>
Date: Wed, 13 Apr 2016 11:57:12 +0200
From: Michal Hocko <mhocko@...nel.org>
To: Ingo Molnar <mingo@...hat.com>
Cc: Peter Zijlstra <peterz@...radead.org>,
Andrew Morton <akpm@...ux-foundation.org>, x86@...nel.org,
<linux-mm@...ck.org>, LKML <linux-kernel@...r.kernel.org>,
linux-arch@...r.kernel.org, Michal Hocko <mhocko@...e.com>
Subject: [PATCH] x86: add frame annotation for call_rwsem_down_write_failed_killable
From: Michal Hocko <mhocko@...e.com>
3387a535ce62 ("x86/asm: Create stack frames in rwsem functions") has
added FRAME_{BEGIN,END} annotations to rwsem asm stubs. The patch
which has added call_rwsem_down_write_failed_killable was based on an
older tree so it didn't know about annotations. Let's add them.
Reported-by: Ingo Molnar <mingo@...nel.org>
Signed-off-by: Michal Hocko <mhocko@...e.com>
---
Hi Ingo,
please apply this on top of [1] when merging to tip/locking/rwsem.
Thanks!
[1] http://lkml.kernel.org/r/1460041951-22347-11-git-send-email-mhocko@kernel.org
arch/x86/lib/rwsem.S | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/x86/lib/rwsem.S b/arch/x86/lib/rwsem.S
index 4534a7e912f3..a37462a23546 100644
--- a/arch/x86/lib/rwsem.S
+++ b/arch/x86/lib/rwsem.S
@@ -107,10 +107,12 @@ ENTRY(call_rwsem_down_write_failed)
ENDPROC(call_rwsem_down_write_failed)
ENTRY(call_rwsem_down_write_failed_killable)
+ FRAME_BEGIN
save_common_regs
movq %rax,%rdi
call rwsem_down_write_failed_killable
restore_common_regs
+ FRAME_END
ret
ENDPROC(call_rwsem_down_write_failed_killable)
--
2.8.0.rc3
Powered by blists - more mailing lists