Re: [PATCH] macvtap: Resolve possible __might_sleep warning in macvtap_do_read()

2015-11-09 Thread David Miller
From: Vladislav Yasevich Date: Mon, 9 Nov 2015 09:14:17 -0500 > macvtap_do_read code calls macvtap_put_user while it might be set up > to wait for the user. This results in the following warning: ... > Make sure thet we call finish_wait() if we have the skb to process > before trying to actual

[PATCH] macvtap: Resolve possible __might_sleep warning in macvtap_do_read()

2015-11-09 Thread Vladislav Yasevich
macvtap_do_read code calls macvtap_put_user while it might be set up to wait for the user. This results in the following warning: Jun 23 16:25:26 galen kernel: [ cut here ] Jun 23 16:25:26 galen kernel: WARNING: CPU: 0 PID: 30433 at kernel/sched/core.c: 7286 __might_sleep+