lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <cover.1696761522.git.chunguang.xu@shopee.com>
Date:   Sun,  8 Oct 2023 18:49:35 +0800
From:   "brookxu.cn" <brookxu.cn@...il.com>
To:     bsingharora@...il.com, juri.lelli@...hat.com, peterz@...radead.org,
        vincent.guittot@...aro.org
Cc:     linux-kernel@...r.kernel.org
Subject: [PATCH 0/3] delayacct: optimization & code simplify 

From: Chunguang Xu <chunguang.xu@...pee.com>

Since in some scenarios we still want to get the task delayacct
through taskstats, so commit <0cd7c741f01de> introduces a sysctl to
enable it dynamically. However, since task->delays is allocated
during fork(), task->delays will not be reallocated when delayacct
is enabled later. This will make we cannot get the delayacct of old
tasks, but the new tasks cans. This can easily lead to confusion.
Therefore, try to workaround this issue by convert task->delays to
an object, just like sched_statistics. Besides, try to simplify the
code of delayacct.

Chunguang Xu (3):
  delayacct: introduce delayacct_enabled() to simplify implement
  delayacct: convert task->delays to a object
  delayacct: remove delayacct_on to simplify the code

 include/linux/delayacct.h |  83 +++++-------------------
 include/linux/sched.h     |   3 +-
 kernel/delayacct.c        | 129 ++++++++++++++++++--------------------
 kernel/fork.c             |   7 +--
 4 files changed, 81 insertions(+), 141 deletions(-)

-- 
2.25.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ