Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4461454imm; Wed, 30 May 2018 06:10:54 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJuZOtCxtupK8J6Klp4K9C2C2BC8J4cDJO9Gfs6k7XWpOikZUrtyIIe+euoLwYB5r45gcah X-Received: by 2002:a65:4204:: with SMTP id c4-v6mr2184906pgq.26.1527685854460; Wed, 30 May 2018 06:10:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527685854; cv=none; d=google.com; s=arc-20160816; b=wIiaAXAA8mxhceNza0UcNhiXwEDPHOnEQgKlj7f0uFScm0lKJrZB08pmCQ9/S4bmnA HjD2ek2xlzfF5HlMMV/2o1X4lH5qxqQ3tQAL15mQ6VJWrQAGRzgmv9XAPVGZBY1dtxmb 50/Wv6C46GsLoMd3HgCaMGIOCz1cvYPjV0QjrsHEN9Pmx+tuDbH028+7uSGotPqiQynI cviY7xJn2ObuiChylIrpkwXlAC/ZaG/FtrUTxtD6s3SjOdfYD/f0UjUhrBhGCIXIpQz7 KjlTFdNGfiGpme9iLptrV+MX1HCk7R8lGn1vX5IPCc8FsSUJuGYgHL4hE4kNoI7a8wmb GvEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=dLVXJGumIzt5xqL13pUfn/GJwYr3Co3Rrpoemr0YX24=; b=RQ3/ENO/LCLSF9ussXT81YCE+Ht9qyt2Fruo8SvEQEyFA661v+LqPMTMUWyiMJ1m3m vDPDVU5EOW8vm123VoBoEZx4Mo2enpQ6vGJ5f4LbEa7I/9cMISfWwb0FHID/z99mDUb3 uzbWpqs0ezCVzNoBgFR1G1XXEkEqN9imxqvdJh98akUc+Vbv5VeUwHdLlGGXmFkA2QcP guXTlNijRVz3g/vEL7Oru6U+K3geYTpgPdRKHYODDGqXzmtphdKb+tUOFqxj9ti3ONgx PzehTemHOL8h9fszDHHoJgeUzopNjk3jbxm0IOzIvhJSIMJ2RLOr31YDCEswSTrr409b iu0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@cmpxchg.org header.s=x header.b=INegiHmJ; 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=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a66-v6si36738754pfb.81.2018.05.30.06.10.39; Wed, 30 May 2018 06:10:54 -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=fail header.i=@cmpxchg.org header.s=x header.b=INegiHmJ; 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=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753082AbeE3NJy (ORCPT + 99 others); Wed, 30 May 2018 09:09:54 -0400 Received: from gum.cmpxchg.org ([85.214.110.215]:52754 "EHLO gum.cmpxchg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751820AbeE3NJw (ORCPT ); Wed, 30 May 2018 09:09:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cmpxchg.org ; s=x; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject: Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=dLVXJGumIzt5xqL13pUfn/GJwYr3Co3Rrpoemr0YX24=; b=INegiHmJnt7am850r2sU5fW6Tp zf4tDt/g6uG4Im7l1hH7rxVxx03FmJW5FeUdIe9pyQ5MSfOzM3c9DuF1Pv+7qGf+9tVVrnFTdI+va 9NwfGW/OkNrvnJnFPTFXJUod6/jpAJ2uu52xbpkAOzjyZwST+AdyCUuF8GaA25CU6nGQ=; Date: Wed, 30 May 2018 09:11:59 -0400 From: Johannes Weiner To: Josef Bacik Cc: axboe@kernel.dk, kernel-team@fb.com, linux-block@vger.kernel.org, akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, tj@kernel.org, linux-fsdevel@vger.kernel.org, Josef Bacik Subject: Re: [PATCH 06/13] blkcg: add generic throttling mechanism Message-ID: <20180530131159.GB4035@cmpxchg.org> References: <20180529211724.4531-1-josef@toxicpanda.com> <20180529211724.4531-7-josef@toxicpanda.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180529211724.4531-7-josef@toxicpanda.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 29, 2018 at 05:17:17PM -0400, Josef Bacik wrote: > @@ -1099,6 +1099,11 @@ struct task_struct { > unsigned int memcg_nr_pages_over_high; > #endif > > +#ifdef CONFIG_BLK_CGROUP > + struct request_queue *throttle_queue; > + bool use_memdelay; > +#endif Since you only touch use_memdelay from current, you can make this a single bit and pack it with the other task flags farther up; memcg_may_oom, no_cgroup_migration and friends.