Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4001765ybg; Fri, 25 Oct 2019 11:56:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqxhfI0ftNFS8MTr7dcbckKPn7U8UPkOq47yVYxfVxdfnHFxpibP4WQW/q2T10BS5lua1ZWq X-Received: by 2002:a50:aad2:: with SMTP id r18mr5772286edc.44.1572029796528; Fri, 25 Oct 2019 11:56:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572029796; cv=none; d=google.com; s=arc-20160816; b=nGMpocgZtaX8vREvRpykN4VPb5q8WasZSBeFSP6OiEka06Mwgeq3rpXwkWJvLT8EMN GOfXvEsdiAEl08woJ3gTfAm/THzS66Un5khq8e2JfiaC7LAVeaCxUSEJGts3yBatin2s TUzZl0wcXHfJiLQQhzv6G3Qq/V/ctIsxKn8+7epOREC0ZMqnU9VbZXuav8FZWjzxpjhF xMMQBJfggsPeA2hN34gcdOCspeWPRfSafm+0A31iPvn3iYe8KMHe7zlyYhilTFa859hs P7jyZbUXoVYyUVwZM3RMSp8fuxSTlqAwx4zlLHQvwn5rcf33l1AAoWo3EF1Lt4Iu7RvM 3CMw== 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; bh=cygSBSpbxOoz5DLta9pK9Fq8puzT/3arKPoGzp7XpzU=; b=d9kQ86CPNyC8Lz9q0YcWwItXCGgTgUmK0++cyFyWElbMsvagKfHh9/u8o2mMN4OBoQ 2hFxv/Rl3XxG95/Bl8Bq5j3lq8IZa6snVYUqkVj/4MBSsbpwaiv7Dwa5EedkrD0Zww57 dEUPU9Y+nySu86dCTLyU04CbAgzt+Y9WNTwv4GPYlqZt75tr70TGAXldK0eJXuG+KfAa raOK/sQhuVj0ofZo66LUuLlyd+U3Ft3hSscSm8egMnUcE8tAwxDDjXCGQlsygc+vuNZZ XWbFT7u6z5JcjWMAAJtmd64F2RBQxZEJ2iYJCjy6kdP3kD8EPUto6GggXm+Z7n/M9h3Y YYBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=uE+qV49X; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m21si1618583eja.161.2019.10.25.11.56.13; Fri, 25 Oct 2019 11:56:36 -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=@gmail.com header.s=20161025 header.b=uE+qV49X; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406423AbfJXTIT (ORCPT + 99 others); Thu, 24 Oct 2019 15:08:19 -0400 Received: from mail-qk1-f193.google.com ([209.85.222.193]:46737 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390450AbfJXTIT (ORCPT ); Thu, 24 Oct 2019 15:08:19 -0400 Received: by mail-qk1-f193.google.com with SMTP id e66so24446690qkf.13; Thu, 24 Oct 2019 12:08:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=cygSBSpbxOoz5DLta9pK9Fq8puzT/3arKPoGzp7XpzU=; b=uE+qV49XGr9hRYWnRoYqjv9vLqOEO1EcgYE+0tCeTsALBbePUu/hwpaNU4ffUZ1NWA LTbQ4vzlv66zSjjBMKaJ22ZpO41SzamYUkbAF1UiGVQXGodtZ8gRY00PAoOZ7T+kjEDm MNuWp+B01XnRIt2dTdeAK5ItWsPfeeaKands4plWQeR4KAH2ocQDPnyZbOTI/gPUEzDG 9StD8w+esdZ8V5yFJXKy0JOZHNucUcWOB82VPa/e3kGsA6HhDh5hW4/hGxppi6z4t3tA Aw953Z+iso0hlCo9AlAkPMOP6zR+BtWewsRS2irIZONjwFIxBeDsV+ZkYZbuei8Whmzz F+Ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=cygSBSpbxOoz5DLta9pK9Fq8puzT/3arKPoGzp7XpzU=; b=EWtHkWs7s1m98RKsUxcG3iVn/2stasPcDyAv5d2xUKfbZX4lY2IN63TX3gHUr0XXao 0/LzeKCzJjNEIN14tc0nZf/ZjrDTZg4+bqgE3gD9fE1Y2s8oz6zFr16xFhQROdcQKNS8 3qyKOwiI37vXXIcrV+Q4C4sHHQ8VHmxY/xjbsR8taznzokMsKu1RfphvkHVIg7FahDoJ G+ae30KSxYwaML660PqypZzGRWzPXP9GZqPxuH7lR5dXCti4gCgklUvBUwCz/hLEmor6 xdrbYifFBZCGhvDW/O1RbJ6HaG9wBBZylNjSIGTASD4ZIBhOgBE96nfQWKGLYaFUf0qZ aDCg== X-Gm-Message-State: APjAAAWHUvTuYhnG96Rgq4gLoIh0VSuxcba4BobGpdb3beO8wAoN8GU0 wK5CR8UATbPBm7oSfnS27d8= X-Received: by 2002:ae9:e513:: with SMTP id w19mr8115731qkf.308.1571944097904; Thu, 24 Oct 2019 12:08:17 -0700 (PDT) Received: from localhost ([2620:10d:c091:500::3:b2e]) by smtp.gmail.com with ESMTPSA id z5sm2247670qkc.136.2019.10.24.12.08.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 Oct 2019 12:08:17 -0700 (PDT) Date: Thu, 24 Oct 2019 12:08:15 -0700 From: Tejun Heo To: Aleksa Sarai Cc: Li Zefan , Johannes Weiner , cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH v2] cgroup: pids: use atomic64_t for pids->limit Message-ID: <20191024190815.GE3622521@devbig004.ftw2.facebook.com> References: <20191016155001.13651-1-cyphar@cyphar.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191016155001.13651-1-cyphar@cyphar.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 17, 2019 at 02:50:01AM +1100, Aleksa Sarai wrote: > Because pids->limit can be changed concurrently (but we don't want to > take a lock because it would be needlessly expensive), use atomic64_ts > instead. > > Fixes: commit 49b786ea146f ("cgroup: implement the PIDs subsystem") > Cc: stable@vger.kernel.org # v4.3+ > Signed-off-by: Aleksa Sarai Applied to cgroup/for-5.5. Thanks. -- tejun