Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp119590img; Tue, 19 Mar 2019 19:33:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqx6qrVJDQp2gZfKQ4w1UsV8ppyLTHLBb405tOlJ9GOZF2bwAjnz2kYcdErJMv1GlXBorOvI X-Received: by 2002:a63:2c3:: with SMTP id 186mr4930926pgc.161.1553049201004; Tue, 19 Mar 2019 19:33:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553049200; cv=none; d=google.com; s=arc-20160816; b=a8L9SXwONu5zrBnD88gs95E08/9YB1RSVAqDmpDArWbCEQEbPXqdia5n9G0TqRw6oK 40yiPlHujcZLcR/kPmsKNCt4C4VYByOiptn8ihcGDGqudVpDyd19vjw7lisTv8R1H+pY upLSKReKLjIriAMXCCVRsfZN3JX/2k3a7MCF12pLFcI8NB7Uz/bBPgWYJQoh5QFI2HJZ gXjXptij3DQd4oNO2Aq38gySN8QShVOs5btuA+thWvtrHjkJkhb0UprXU0MH0KXMfWwp RTr8dQPkLBFEMso4rl4BabZ+d/I/hykW8nOFFJoeoRLaz2vI6Gitb7Unt6+g+5uQU2Jh jwLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=z4P9JaRSt8xPt7JdkSd0fTgJ95kf7fCY0+tUGcSiO/E=; b=zQe6Mzx9VSnhmCd93FAU6+GBLpYTbEphJCGPEOBFEShLqPYn1Fc/t99+OnXsBJtYnZ HvbSYvHAFw3QV0I+NxNRQh8fZW+jrygr1n4CBqThZSTot/2JrXVswNAJYW3lI5+bzXqG 6qHF0tcxY7zHdrt+M3DMcNeEgTRe10lOs/MPSjZOeRf9wgjrdZgxNsVpoAGF4ODKt1y8 YJLZG9HFc2HgHvCKngDbtaT4RVXkqQlvaugEOkCoxta68Q0qzsJV1xj8cxyQ7ZiWnWn6 5vM4NlqDvDx2bUfnhUjGkkx01dpX5ZCnAChZkeTBe4qnpg6QCsB6mxThOvVE8fkikcs2 fByA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=K5dheTyc; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n11si501300pgp.260.2019.03.19.19.33.06; Tue, 19 Mar 2019 19:33:20 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=K5dheTyc; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727192AbfCTCbC (ORCPT + 99 others); Tue, 19 Mar 2019 22:31:02 -0400 Received: from mail-qt1-f194.google.com ([209.85.160.194]:37199 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726969AbfCTCbC (ORCPT ); Tue, 19 Mar 2019 22:31:02 -0400 Received: by mail-qt1-f194.google.com with SMTP id z17so856755qtn.4 for ; Tue, 19 Mar 2019 19:31:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=z4P9JaRSt8xPt7JdkSd0fTgJ95kf7fCY0+tUGcSiO/E=; b=K5dheTyc62Z6K7G/0k8yU35QfeISyhxCYf+S9G1tdzbExuxFmwgHiv7VW8HItM1ABK ibnGYWu5q1BHdCaUkKXsbADos0YUWACekVb3F4hHUr9dJaLlBeQbhznjcGScWa1yLoUn 7uqmR6+qK62U+GcI3NdCN9jjND5lXoe+NNpmas3o8Ehjibr81oV+saD3kRqGCl278ubx 0V8nkFaK5XDgfImRgqdPvl3/pPrp2cRtTcXMGLXtn7fDoJLrKuVqDJbl2SzFvsZ1jh4q 9WAzvEMidx2TS0dDkUMhu2GEzBERQBw6KKnPO/LeI+Ljh051xDgHfGs3tCTlW62fspsE fhag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=z4P9JaRSt8xPt7JdkSd0fTgJ95kf7fCY0+tUGcSiO/E=; b=WtYAOa1HdJpUJ/k/17B4CVmurYMk7NZm0NK0AfHSC+gkBDmXAquRlP7aXv5K8fs5U9 RrojPmpxncncY77yR1da0himAnEWs+No28xrE/qoglnwGHwBVI25E5JpVLf2uD+ep43b I5pzAM2NBiSsgypCr+0epjyMNnGwzQVco6UgmoGpeqPM23ATUh1tcNGTOwGLmBBRehJS wGy7K6o8ScBcaKrg4eZPAY8egplH1nqay2C/qp93YNP9lYH6B3bW4ocnyZw/rRAeK4D2 qsjxzcPohfxyo8av6OmxpqY23dh5IS/0zmaSXj4jHgZZO3CVkyiH82pdJY/L3hP3niHl vqQQ== X-Gm-Message-State: APjAAAVILL5wgg6PoJ1l1i8CUlFi9F3/XftvRyrtHdmEl3tq+QWDoKDC qcUiryDEZabgXP7MFsKNp3pYWz+fIJL+JMDxN2o= X-Received: by 2002:a0c:ba9d:: with SMTP id x29mr4467745qvf.112.1553049061443; Tue, 19 Mar 2019 19:31:01 -0700 (PDT) MIME-Version: 1.0 References: <20190318085733.3143-1-duyuyang@gmail.com> <20190318085733.3143-16-duyuyang@gmail.com> <1553014484.65329.10.camel@acm.org> In-Reply-To: <1553014484.65329.10.camel@acm.org> From: Yuyang Du Date: Wed, 20 Mar 2019 10:30:50 +0800 Message-ID: Subject: Re: [PATCH v2 15/19] locking/lockdep: Remove __cq_empty() To: Bart Van Assche Cc: peterz@infradead.org, will.deacon@arm.com, mingo@kernel.org, ming.lei@redhat.com, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thanks for review. On Wed, 20 Mar 2019 at 00:54, Bart Van Assche wrote: > > This is the most important change in this patch. Using the title "Remove __cq_empty()" > for this patch is misleading because the above patch does something else, namely changing > the return type of __cq_dequeue() from int into a pointer. Should this patch perhaps be > split or should the __cq_empty() removal be left out from this patch? I actually hesitated whether _cq_full() should be inlined as well. Having said that, let me keep both of them and just change the return type of __cq_dequeue(). Thanks, Yuyang