瀏覽代碼

rxrpc: Make sure sendmsg() is woken on call completion

Make sure that sendmsg() gets woken up if the call it is waiting for
completes abnormally.

Signed-off-by: David Howells <dhowells@redhat.com>
David Howells 9 年之前
父節點
當前提交
c0d058c21c
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      net/rxrpc/ar-internal.h

+ 1 - 0
net/rxrpc/ar-internal.h

@@ -758,6 +758,7 @@ static inline bool __rxrpc_set_call_completion(struct rxrpc_call *call,
 		call->error = error;
 		call->completion = compl,
 		call->state = RXRPC_CALL_COMPLETE;
+		wake_up(&call->waitq);
 		return true;
 	}
 	return false;