[PATCH] x86/hyperv: Disable preemption while setting reenlightenment vector

2019-06-11 Thread Dmitry Safonov
p...@vger.kernel.org Cc: x...@kernel.org Reported-by: Prasanna Panchamukhi Signed-off-by: Dmitry Safonov --- arch/x86/hyperv/hv_init.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/arch/x86/hyperv/hv_init.c b/arch/x86/hyperv/hv_init.c index 1608050e9df9..0bdd79ecbff

Re: [PATCH] x86/hyperv: Disable preemption while setting reenlightenment vector

2019-06-14 Thread Dmitry Safonov
On 6/14/19 11:08 AM, Vitaly Kuznetsov wrote: > Peter Zijlstra writes: > >> @@ -182,7 +182,7 @@ void set_hv_tscchange_cb(void (*cb)(void)) >> struct hv_reenlightenment_control re_ctrl = { >> .vector = HYPERV_REENLIGHTENMENT_VECTOR, >> .enabled = 1, >> -.t

Re: [PATCH] x86/hyperv: Disable preemption while setting reenlightenment vector

2019-06-14 Thread Dmitry Safonov
On 6/14/19 1:27 PM, Peter Zijlstra wrote: > On Fri, Jun 14, 2019 at 12:50:51PM +0100, Dmitry Safonov wrote: >> On 6/14/19 11:08 AM, Vitaly Kuznetsov wrote: >>> Peter Zijlstra writes: >>> >>>> @@ -182,7 +182,7 @@ void set_hv_tsccha

[PATCHv2] x86/hyperv: Hold cpus_read_lock() on assigning reenlightenment vector

2019-06-17 Thread Dmitry Safonov
asha Levin Cc: Stephen Hemminger Cc: Thomas Gleixner Cc: Vitaly Kuznetsov Cc: de...@linuxdriverproject.org Cc: k...@vger.kernel.org Cc: linux-hyp...@vger.kernel.org Cc: x...@kernel.org Reported-by: Prasanna Panchamukhi Signed-off-by: Dmitry Safonov --- v1 link: lkml.kernel.org/r/20190611212003.

[PATCH] binder: Drop needless locking in binder_mmap()

2017-05-24 Thread Dmitry Safonov
t commit prohibited mmap'ing of fd, that was opened by some other task. That restriction has made locking in binder_mmap() unnecessary. Cc: Al Viro Cc: "Arve Hjønnevåg" Cc: Greg Kroah-Hartman Cc: Riley Andrews Cc: de...@driverdev.osuosl.org Cc: Android Kernel Team Signed-off-by:

[PATCH] binder: remove unused BINDER_SMALL_BUF_SIZE define

2017-05-24 Thread Dmitry Safonov
It was never used since addition of binder to linux mainstream tree. Cc: Greg Kroah-Hartman Cc: "Arve Hjønnevåg" Cc: Riley Andrews Cc: de...@driverdev.osuosl.org Signed-off-by: Dmitry Safonov --- drivers/android/binder.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drive

Re: [PATCH] binder: Drop needless locking in binder_mmap()

2017-06-19 Thread Dmitry Safonov
On 05/24/2017 05:51 PM, Dmitry Safonov wrote: binder_mmap() protected proc->buffer from concurrent changes. It was introduced with commit bd1eff9741af ("Staging: android: binder: Fix crashes when sharing a binder file between processes"). The commit fixed such races alike: t