Re: [PATCH 03/17] fs: don't allow to complete sync iocbs through aio_complete

From
Tadeusz Struk <hidden>
Date
2015-04-14 18:03:53
Also in
linux-crypto
Reply to
Al Viro, 2015-04-11
On 04/11/2015 02:18 PM, Al Viro wrote:
quoted hunk ↗ jump to hunk
@@ -766,8 +765,7 @@ int sock_recvmsg(struct socket *sock, struct msghdr *msg,
 
 	init_sync_kiocb(&iocb, NULL);
 	ret = __sock_recvmsg(&iocb, sock, msg, size, flags);
-	if (-EIOCBQUEUED == ret)
-		ret = wait_on_sync_kiocb(&iocb);
+	BUG_ON(ret == -EIOCBQUEUED);
NACK - PF_ALG type sockets support async operations and return -EIOCBQUEUED
See skcipher_recvmsg_async() in crypto/algif_skcipher.c in net-next
Thread (36 messages) 36 messages, 6 authors, last reply 2015-04-15
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help