Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp2608580imd; Sun, 28 Oct 2018 14:01:14 -0700 (PDT) X-Google-Smtp-Source: AJdET5c9tOqcs05iY8scYTfsEq19PF+LG+lXH68GTJ+CfCwVjrRcySorRO4yWSXUhYPL6oqIxNAR X-Received: by 2002:a17:902:4683:: with SMTP id p3-v6mr11838919pld.215.1540760474794; Sun, 28 Oct 2018 14:01:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540760474; cv=none; d=google.com; s=arc-20160816; b=ADQ4SZKlIX8BV+jSKJNiWJb6NYTz/PTCkMo1uoOrHvUcbLeh5oztZ0gmtUhlJpB26g Pc03UOVNmpczqgGtdSoPFVJHItqn+QcMtutHoJZewuYQ9Mg0naH1/k7USNiiXM2cu+b8 00rp8ZNHNBMS02bnBI+XfVG9tr9rkJucRI0Eo61djq+tTHMD3Xob9cnHQY4WfgX84lRQ OrxQMwMAXwDbJmAjlOpMMKZKvceeBaDPveprrl6nvolh5Fy6tZC3EpIY687VxWCwjW65 8wpHbzm2ehzM3Knsh6/bc8AVfCWFYEpY7rBgjpatwh8O3woPXhqCpnn8Wxr1yd74d8p2 xveg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:importance:content-transfer-encoding :mime-version:subject:references:in-reply-to:message-id:cc:to:from :date; bh=u8Ffkwu/5CMAugmkFRpW8TGRWD2za0dJpkICfj3ZR58=; b=Dtc6Y7oYYb4hXBCnIEnqXF2BCTdOusAWnpwW4hSCRKITifEk0AzSs8eEXQgmxteuos vfUL1C/H5denmNT57K8mIXZWlnF/UG90OsbnGsT64GFEyCzoSO1EyYiGiZW/GzfXNwR+ I9B3exxBAvYOG67dwK+FBnKHpGMnM5StmX6xdyDcycXvEujr0CjqAfTKJ7M0MNpIcoRH Oy4C5rYaW0XdeI/ajqDc6g8+AIG2H0PTu1aTZDhi1rGMdpv/C2bksIkIDLkh9YDnu7ZY Q8JmCJJKdyR11xDV2S5jsqOwpj1r/bgvBLe3pMeZFx1EMrlnbx5KL7vnifQFAaF/vpaP uQhQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z8-v6si18578909pgc.286.2018.10.28.14.00.59; Sun, 28 Oct 2018 14:01:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727705AbeJ2FqW (ORCPT + 99 others); Mon, 29 Oct 2018 01:46:22 -0400 Received: from mout.kundenserver.de ([212.227.126.130]:59669 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727078AbeJ2FqW (ORCPT ); Mon, 29 Oct 2018 01:46:22 -0400 Received: from null ([212.227.220.15]) by mrelayeu.kundenserver.de (mreue001 [213.165.67.97]) with ESMTPSA (Nemesis) id 0M9j7n-1gQTLw3hyJ-00Cwl1; Sun, 28 Oct 2018 22:00:11 +0100 Received: from null ([212.227.220.15]) by mrelayeu.kundenserver.de (mreue001 [213.165.67.97]) with ESMTPSA (Nemesis) id 0M9j7n-1gQTLw3hyJ-00Cwl1; Sun, 28 Oct 2018 22:00:11 +0100 Date: Sun, 28 Oct 2018 22:00:10 +0100 (CET) From: Stefan Wahren To: Nicolas Saenz Julienne , eric@anholt.net, dave.stevenson@raspberrypi.org Cc: linux-rpi-kernel@lists.infradead.org, gregkh@linuxfoundation.org, linux-arm-kernel@lists.infradead.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Message-ID: <646164838.4217.1540760410870@email.ionos.de> In-Reply-To: <20181026134813.7775-12-nsaenzjulienne@suse.de> References: <20181026134813.7775-1-nsaenzjulienne@suse.de> <20181026134813.7775-12-nsaenzjulienne@suse.de> Subject: Re: [PATCH RFC 11/18] staging: vchiq_arm: use completions instead of semaphores MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Medium X-Mailer: Open-Xchange Mailer v7.8.4-Rev39 X-Originating-Client: open-xchange-appsuite X-Provags-ID: V03:K1:/5N3B9OX1SeVKvEc8cP+3WfKHk73DBpJzvWUR/J3nCTAhOrQJ3G 2TbjbySLazTZJgP7wTzCTXNznGi3g5m8cyeSsNQvzjmfakaXl5H/f+yh6FtGRQ8jhSU5OSU A1eUlv5N/Fw7sAEXXH23gYAXAL1tOdLIIpzQyl6E/WYkcYXmO10bwCPq/8wN0+CIrxDK1hx BN7FFy3JDzcBm2lTOH7Xg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V01:K0:+8gVdqKyQ2s=:ipfnBK/QnBtE2pzjgVUHRb xJ+qK5CEdeLeTqZ8HiDPCgJ15970ZFTPmtZialzDc1CS004n6llqyIRFEqVP7Fmkpo5wh31IW K8Tx6DlpXaY5WeNS+1AnLjgXGHYlWjJEPTz068oi18BDCE53hDZt7TT2Y9lvpaIYgQbWAsNii hIl75qxa/W0ln/GhEj1N0U3InVfPTfpoKhEHV72QfGqdC+1CfHbPi2oqvTHkZNag0bKPJPFUy Cu0obKK4a0I4U14ZtjkjazfFoIhyNcx4hO49rsQFvy+yenfd7xcG8nnheECFDIP+xGTODJrg0 Bw78IJ74eIDUOvSGpsHAk7F+lAeA6kO7yNSTCAtR+lJr6e6GmC/ax97t2x8EBmpom2OehRdOp KX/hJQY3urDIOkL+G9qZa0ezlzAywaY1CNYSI9O48jcP7HSIk80NAqiWApMBzWlvBP2N5Hl2x +ABuwHWl47Xavfw+CDYod/W84Esqsn0LtUwUf+y51vvF1fkbRoigNQyfWmcjAVpDGx+O/lXWf UCL1hIn/4dttheNEozqxoIE0ufNo492ZmWSNtKIUbGA62+VwtCo9beu5PeyHwTXARKrEp40QF sXjdP3sGetUeOcWaGbPw8OpGqj1k1OWR7AMK7vAwtGPKtFF9D0GLdnYcy8aEhuFmvzI3wLCZ6 XkAy0jvX/Z2d3/9HFnFfVN+m+qXZ4IofS9Br/SBDF6hPZfT++kg3Oa2QRsgxSG90xoMHUIkpW efGJDw/eb0ADT363 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Nicolas Saenz Julienne hat am 26. Oktober 2018 um 15:48 geschrieben: > > > It is preferred in the kernel to avoid using semaphores to wait for > events, as they are optimised for the opposite situation; where the > common case is that they are available and may block only occasionally. > FYI see this thread: https://lkml.org/lkml/2008/4/11/323. > > Also completions are semantically more explicit in this case. > Since patch #11 #12 and #13 doing the same, they could be fold.