diff options
Diffstat (limited to 'app-emulation/vmware-modules/files/208-sk_sleep.patch')
-rw-r--r-- | app-emulation/vmware-modules/files/208-sk_sleep.patch | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/app-emulation/vmware-modules/files/208-sk_sleep.patch b/app-emulation/vmware-modules/files/208-sk_sleep.patch new file mode 100644 index 0000000..d92dd7c --- /dev/null +++ b/app-emulation/vmware-modules/files/208-sk_sleep.patch @@ -0,0 +1,74 @@ +diff --git a/vsock-only/linux/af_vsock.c b/vsock-only/linux/af_vsock.c +index 314e5fb..bd69539 100644 +--- a/vsock-only/linux/af_vsock.c ++++ b/vsock-only/linux/af_vsock.c +@@ -3150,5 +3150,5 @@ VSockVmciStreamConnect(struct socket *sock, // IN + */ + timeout = sock_sndtimeo(sk, flags & O_NONBLOCK); +- compat_init_prepare_to_wait(sk->compat_sk_sleep, &wait, TASK_INTERRUPTIBLE); ++ compat_init_prepare_to_wait(compat_sk_sleep(sk), &wait, TASK_INTERRUPTIBLE); + + while (sk->compat_sk_state != SS_CONNECTED && sk->compat_sk_err == 0) { +@@ -3173,5 +3173,5 @@ VSockVmciStreamConnect(struct socket *sock, // IN + } + +- compat_cont_prepare_to_wait(sk->compat_sk_sleep, &wait, TASK_INTERRUPTIBLE); ++ compat_cont_prepare_to_wait(compat_sk_sleep(sk), &wait, TASK_INTERRUPTIBLE); + } + +@@ -3185,5 +3185,5 @@ VSockVmciStreamConnect(struct socket *sock, // IN + + outWait: +- compat_finish_wait(sk->compat_sk_sleep, &wait, TASK_RUNNING); ++ compat_finish_wait(compat_sk_sleep(sk), &wait, TASK_RUNNING); + out: + release_sock(sk); +@@ -3392,5 +3392,5 @@ VSockVmciPoll(struct file *file, // IN + sk = sock->sk; + +- poll_wait(file, sk->compat_sk_sleep, wait); ++ poll_wait(file, compat_sk_sleep(sk), wait); + mask = 0; + +@@ -3993,5 +3993,5 @@ VSockVmciStreamSendmsg(struct kiocb *kiocb, // UNUSED + */ + timeout = sock_sndtimeo(sk, msg->msg_flags & MSG_DONTWAIT); +- compat_init_prepare_to_wait(sk->compat_sk_sleep, &wait, TASK_INTERRUPTIBLE); ++ compat_init_prepare_to_wait(compat_sk_sleep(sk), &wait, TASK_INTERRUPTIBLE); + + while (totalWritten < len) { +@@ -4032,5 +4032,5 @@ VSockVmciStreamSendmsg(struct kiocb *kiocb, // UNUSED + } + +- compat_cont_prepare_to_wait(sk->compat_sk_sleep, ++ compat_cont_prepare_to_wait(compat_sk_sleep(sk), + &wait, TASK_INTERRUPTIBLE); + } +@@ -4115,5 +4115,5 @@ outWait: + err = totalWritten; + } +- compat_finish_wait(sk->compat_sk_sleep, &wait, TASK_RUNNING); ++ compat_finish_wait(compat_sk_sleep(sk), &wait, TASK_RUNNING); + out: + release_sock(sk); +@@ -4338,5 +4338,5 @@ VSockVmciStreamRecvmsg(struct kiocb *kiocb, // UNUSED + copied = 0; + +- compat_init_prepare_to_wait(sk->compat_sk_sleep, &wait, TASK_INTERRUPTIBLE); ++ compat_init_prepare_to_wait(compat_sk_sleep(sk), &wait, TASK_INTERRUPTIBLE); + + while ((ready = VMCIQueue_BufReady(vsk->consumeQ, +@@ -4381,5 +4381,5 @@ VSockVmciStreamRecvmsg(struct kiocb *kiocb, // UNUSED + } + +- compat_cont_prepare_to_wait(sk->compat_sk_sleep, &wait, TASK_INTERRUPTIBLE); ++ compat_cont_prepare_to_wait(compat_sk_sleep(sk), &wait, TASK_INTERRUPTIBLE); + } + +@@ -4473,5 +4473,5 @@ VSockVmciStreamRecvmsg(struct kiocb *kiocb, // UNUSED + + outWait: +- compat_finish_wait(sk->compat_sk_sleep, &wait, TASK_RUNNING); ++ compat_finish_wait(compat_sk_sleep(sk), &wait, TASK_RUNNING); + out: + release_sock(sk); |