Received: by 2002:a25:b323:0:0:0:0:0 with SMTP id l35csp766759ybj; Thu, 19 Sep 2019 23:11:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqxhex6XlIDxEewYSIr3lUnNcgcgoeOkSndco0wWCkTdt7cOX98etUFr6Q4CbvihZCHhCMp7 X-Received: by 2002:a17:906:1cc6:: with SMTP id i6mr18093224ejh.40.1568959887894; Thu, 19 Sep 2019 23:11:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568959887; cv=none; d=google.com; s=arc-20160816; b=HXgJiouQiAHiNBKZucfkMPpjwtR8N9pvw44WQit2Lxl0sKcDwGQO/2On4vlfCLd0Ob znoezIJtaRrryiNkKNc9tK7u0h7TIxF8Qi9y50493fia1WIbgHjGK3h5tZFHDMIIUptK fjkarCkLD9S1SwUWRVW2BxUj2B7qolf0L571vb3SRoRdU/4gd7A4JFQMzGyk/xlp1HLi uroXADcroVtjMzJ1ghUXtkwqLA0py3rEs250uDGeRcVXey77Arxh3691br09JhLdaSH1 SvlKa/obbKYm52ZHSaWXq6vQWwiO49gM8+87c4+EkEcZUba3jlhglk65OggMVZBUX96Q JxDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=UC6QOlPtFT4L7gAheGuvmlsU7X18QM5xfLgyP/nfovU=; b=FcoxFm06CbMUb2Xdg+UzAbonlmRoY4v2maGCDIhjuM9mLv+JjC6Bk+Yjmu2VBKnWYI YO2I6yG/8kg9n0yv2hNOSVk2ae6HWJv1YjLq0XBNGZSAMW5Jjky3Li3ZY8A94eqjqXVS 1hgflTVE1vWj11IyiRaPsukgQUK8uZ7dtIVhii1Gx8YP3DP4eLw/CUTtxnN+eXAorzJo D5IRAk61lsDiTyzz/T6j5c9UxFWn2SZ/5eA9L82qg+HeMTf02yIIvaCqXzI1l9GOdKyy GUXXgbHkJoQmYPGKFCodPpXzwUHerRAX5ZkB+XhRTtxkd9gAunALt0lsFKtB+tANDuL7 3p9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="TenY/nIF"; 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=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d26si813657eda.190.2019.09.19.23.11.05; Thu, 19 Sep 2019 23:11:27 -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=@chromium.org header.s=google header.b="TenY/nIF"; 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=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389655AbfISVTH (ORCPT + 99 others); Thu, 19 Sep 2019 17:19:07 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:37030 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389222AbfISVTH (ORCPT ); Thu, 19 Sep 2019 17:19:07 -0400 Received: by mail-pf1-f196.google.com with SMTP id y5so3118212pfo.4 for ; Thu, 19 Sep 2019 14:19:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=UC6QOlPtFT4L7gAheGuvmlsU7X18QM5xfLgyP/nfovU=; b=TenY/nIF7r7AdT+DbY/MGs07XLbBYbYB48QaTr8BR5xkPDPdFERhf51rjGe3hCmhsS b8Lj5e/Uq+1231XB+btSn0lJ8ydUKyHp5gXzFJ167/FMVN2NcDdzlvLpekeY1+73P9R+ ZdwDUdLaVeSZ+JxQTu1Ano0gST3u/0h/mEasM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=UC6QOlPtFT4L7gAheGuvmlsU7X18QM5xfLgyP/nfovU=; b=ERfOeMw5L7Mc78bZNO2Nisp7ak3YR8bFKzGHvIEEFFItRu0tGT0d9ZT0kCuckXnAtN PsxL9T08VlwEua3GBHtWzYBW2uPCpkRIv8JeKNcDpomYKw9wesNAzQFqG89W6YF4S8Zc Mwu9U9bkD47Mi2c5cPYFlyJTVzbldyoasId4eftzIxts5H9cL/0qM4YXGYe8Tkh0chwp emzvzmqoEWL3jS/UZ7+AOrCYC8nsIgUvXq+/Ug2RuTX1iZgQ3N9Pi610H75thqC1H5Y3 Ua7YmRnmtRjfCHdQsINlyVtaTja1SB4xYjFbZ85rVwbDoNPR/wJBS5SUpBDiIbrdrV7L MkAw== X-Gm-Message-State: APjAAAVakVoCpZ8bC9AfwLQdHmIrOaVR4vQROBVoOjt2Y/pGndasUh4H KWPE6ReQtu94Tu8X3cbiOWnOlA== X-Received: by 2002:a17:90a:310:: with SMTP id 16mr125647pje.100.1568927946393; Thu, 19 Sep 2019 14:19:06 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id y4sm5933542pjn.19.2019.09.19.14.19.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Sep 2019 14:19:05 -0700 (PDT) Date: Thu, 19 Sep 2019 14:19:04 -0700 From: Kees Cook To: Mauro Carvalho Chehab Cc: Jonathan Corbet , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] docs: Use make invocation's -j argument for parallelism Message-ID: <201909191417.6E59C942@keescook> References: <201909191116.192A096C68@keescook> <20190919162549.5ccdab62@coco.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190919162549.5ccdab62@coco.lan> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 19, 2019 at 04:25:49PM -0300, Mauro Carvalho Chehab wrote: > Em Thu, 19 Sep 2019 11:18:52 -0700 > Kees Cook escreveu: > > [...] > > +# Fetch the make environment options. > > +flags = os.environ.get('MAKEFLAGS', None) > > +if flags == None: > > + print("1") > > + sys.exit(0) > > + > > +# Look for "--jobserver=R,W" > > +opts = [x for x in flags.split(" ") if x.startswith("--jobserver")] > > +if len(opts) != 1: > > + print("1") > > + sys.exit(0) > > Using "1" as default if -j is not specified doesn't sound a good idea. I > mean, Sphinx is very slow without any parallelism. I would keep "auto" as > default here, if version >= 1.7 (and if there's no explicit SPHINXOPTS). Okay, that's fair. This does introduce a behavioral regression from that perspective. Let me spin a v2 that'll DTRT. -- Kees Cook