Re: blocking ops when !TASK_RUNNING in vsock_stream_sendmsg() (again)

2017-04-26 Thread Cong Wang
Hi, On Fri, Apr 21, 2017 at 1:14 AM, Michal Kubecek wrote: > I tried to think about a solution but there doesn't seem to be an easy > way to fix this in vmw_stream_sendmsg() as moving prepare_to_wait() > inside the loop would result in missed wake-ups (that was the problem > with the original fix

blocking ops when !TASK_RUNNING in vsock_stream_sendmsg() (again)

2017-04-21 Thread Michal Kubecek
Hello, one of openSUSE Leap 42.2 users encountered (repeatedly) a warning [ 4057.170653] WARNING: CPU: 1 PID: 3471 at ../kernel/sched/core.c:7913 __might_sleep+0x76/0x80() [ 4057.170661] do not call blocking ops when !TASK_RUNNING; state=1 set at [] prepare_to_wait+0x2b/0x80 with stack [ 4057