[PATCH v2 2/2] MAINTAINERS: Update my email address

2021-01-13 Thread Zefan Li
Signed-off-by: Zefan Li --- MAINTAINERS | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 2a01cd3e0a2b..4987d1ce9ac6 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -4448,7 +4448,7 @@ F:include/linux/console* CONTROL GROUP (CGROUP

[PATCH 2/2] MAINTAINERS: Update my email address

2021-01-13 Thread Zefan Li
Signed-off-by: Zefan Li --- MAINTAINERS | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 89140540aa8d..bc38f36f257c 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -4467,7 +4467,7 @@ F:include/linux/console* CONTROL GROUP

[PATCH 1/2] MAINTAINERS: Remove stale URLs for cpuset

2021-01-13 Thread Zefan Li
Those URLs are no longer accessable. Reported-by: Steve Wahl Signed-off-by: Zefan Li --- MAINTAINERS | 2 -- 1 file changed, 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 546aa66428c9..89140540aa8d 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -4494,8 +4494,6 @@ CONTROL GROUP

Re: [PATCH] cpuset: Remove stale URLs in the MAINTAINERS entry

2020-12-27 Thread Zefan Li
On 2020/12/28 14:01, Joe Perches wrote: > On Mon, 2020-12-28 at 11:17 +0800, Zefan Li wrote: >> Those URLs are no longer accessable. >> >> Reported-by: Steve Wahl >> Signed-off-by: Zefan Li >> --- >>  MAINTAINERS | 2 -- >>  1 file changed, 2

[PATCH] cpuset: Remove stale URLs in the MAINTAINERS entry

2020-12-27 Thread Zefan Li
Those URLs are no longer accessable. Reported-by: Steve Wahl Signed-off-by: Zefan Li --- MAINTAINERS | 2 -- 1 file changed, 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index ae9b1dd748c4..2fe8eb54639e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -4477,8 +4477,6 @@ CONTROL GROUP

Re: [PATCH v2] cgroup-v1: add disabled controller check in cgroup1_parse_param()

2020-12-17 Thread Zefan Li
param->key); > ctx->subsys_mask |= (1 << i); > return 0; > } Reviewed-by: Zefan Li

Re: [PATCH v2] cgroup: Fix memory leak when parsing multiple source parameters

2020-12-15 Thread Zefan Li
> +++ b/kernel/cgroup/cgroup-v1.c > @@ -908,6 +908,8 @@ int cgroup1_parse_param(struct fs_context *fc, struct > fs_parameter *param) > opt = fs_parse(fc, cgroup1_fs_parameters, param, &result); > if (opt == -ENOPARAM) { > if (strcmp(param->key, "source") == 0) { > + if (fc->source) > + return invalf(fc, "Multiple sources not > supported"); Reviewed-by: Zefan Li

Re: [PATCH] cgroup: Fix memory leak when parsing multiple source parameters

2020-12-15 Thread Zefan Li
es not > + supported"); "never break user-visible strings such as printk messages because that breaks the ability to grep for them.", quoted from CodingStyle. Please fix this and you can add Reviewed-by: Zefan Li

Re: [External] Re: [PATCH v3] mm: memcontrol: Add the missing numa_stat interface for cgroup v2

2020-09-13 Thread Zefan Li
On 2020/9/14 11:10, Muchun Song wrote: > On Mon, Sep 14, 2020 at 1:09 AM Chris Down wrote: >> >> Muchun Song writes: >>> In the cgroup v1, we have a numa_stat interface. This is useful for >>> providing visibility into the numa locality information within an >>> memcg since the pages are allowed t

Re: [PATCH v3 0/8] huge vmalloc mappings

2020-08-11 Thread Zefan Li
On 2020/8/12 0:32, Jonathan Cameron wrote: > On Mon, 10 Aug 2020 12:27:24 +1000 > Nicholas Piggin wrote: > >> Not tested on x86 or arm64, would appreciate a quick test there so I can >> ask Andrew to put it in -mm. Other option is I can disable huge vmallocs >> for them for the time being. > > H

Re: [PATCH v2 4/4] mm/vmalloc: Hugepage vmalloc mappings

2020-07-19 Thread Zefan Li
> +static int vmap_pages_range_noflush(unsigned long start, unsigned long end, > + pgprot_t prot, struct page **pages, > + unsigned int page_shift) > +{ > + if (page_shift == PAGE_SIZE) { Is this a typo of PAGE_SHIFT? > +

Re: [PATCH v2 4/4] mm/vmalloc: Hugepage vmalloc mappings

2020-07-01 Thread Zefan Li
> static void *__vmalloc_node(unsigned long size, unsigned long align, > - gfp_t gfp_mask, pgprot_t prot, > - int node, const void *caller); > + gfp_t gfp_mask, pgprot_t prot, unsigned long vm_flags, > + int no

Re: [PATCH linux-next] kernel/fork.c: annotate data races for copy_process

2020-06-17 Thread Zefan Li
On 2020/6/17 17:08, Chenweilong wrote: >> On Tue, Jun 09, 2020 at 11:08:01AM +0800, Weilong Chen wrote: >>> The check is only there to stop root fork bombs. >>> >>> BUG: KCSAN: data-race in copy_process / copy_process >>> >>> write to 0x86f87d20 of 4 bytes by task 7121 on cpu 5: >>> copy_p

Re: [PATCH] cgroup: Refactor two assignments in css_task_iter_next_css_set()

2020-06-14 Thread Zefan Li
On 2020/6/15 7:22, zzuedu2...@163.com wrote: > On Sun, 2020-06-14 at 18:10 +0800, James.Bottomley@xxx wrote: > >> it's arguable that having two statements instead of one makes the code >> marginally more readable. > > Above the function there is a similar line of code: > l = it->tcset_pos->ne

Re: [PATCH v2] netprio_cgroup: Fix unlimited memory leak of v2 cgroups

2020-05-21 Thread Zefan Li
On 2020/5/22 5:14, John Fastabend wrote: > Jakub Kicinski wrote: >> On Fri, 8 May 2020 22:58:29 -0700 Jakub Kicinski wrote: >>> On Sat, 9 May 2020 11:32:10 +0800 Zefan Li wrote: >>>> If systemd is configured to use hybrid mode which enables the use of >>&g

[PATCH] cgroup: Remove stale comments

2020-05-12 Thread Zefan Li
- The default root is where we can create v2 cgroups. - The __DEVEL__sane_behavior mount option has been removed long long ago. Signed-off-by: Li Zefan --- found these when fixing the netprio cgroup bug. --- kernel/cgroup/cgroup.c | 9 + 1 file changed, 1 insertion(+), 8 deletions(-)

[PATCH v2] netprio_cgroup: Fix unlimited memory leak of v2 cgroups

2020-05-08 Thread Zefan Li
k is attached to a new cgroup. Fixes: bd1060a1d671("sock, cgroup: add sock->sk_cgroup") Reported-by: Yang Yingliang Tested-by: Yang Yingliang Signed-off-by: Zefan Li --- forgot to rebase to the latest kernel. --- net/core/netprio_cgroup.c | 2 ++ 1 file changed, 2 inserti

[PATCH] netprio_cgroup: Fix unlimited memory leak of v2 cgroup

2020-05-08 Thread Zefan Li
k is attached to a new cgroup. Fixes: bd1060a1d671("sock, cgroup: add sock->sk_cgroup") Reported-by: Yang Yingliang Tested-by: Yang Yingliang Signed-off-by: Zefan Li --- net/core/netprio_cgroup.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/core/netprio_cgroup.c b/ne

Re: cgroup pointed by sock is leaked on mode switch

2020-05-06 Thread Zefan Li
On 2020/5/6 10:16, Zefan Li wrote: On 2020/5/6 9:50, Yang Yingliang wrotee: +cc lize...@huawei.com On 2020/5/6 0:06, Tejun Heo wrote: Hello, Yang. On Sat, May 02, 2020 at 06:27:21PM +0800, Yang Yingliang wrote: I find the number nr_dying_descendants is increasing: linux-dVpNUK:~ # find /sys

Re: cgroup pointed by sock is leaked on mode switch

2020-05-05 Thread Zefan Li
On 2020/5/6 9:50, Yang Yingliang wrotee: +cc lize...@huawei.com On 2020/5/6 0:06, Tejun Heo wrote: Hello, Yang. On Sat, May 02, 2020 at 06:27:21PM +0800, Yang Yingliang wrote: I find the number nr_dying_descendants is increasing: linux-dVpNUK:~ # find /sys/fs/cgroup/ -name cgroup.stat -exec g

Re: [PATCH] cgroup: provide a macro helper to iterate a cgroup's ancestors

2019-06-27 Thread Zefan Li
On 2019/6/27 18:19, Peng Wang wrot: Use for_each_ancestor macro to iterate a cgroup's ancestors for clarity.> This patch doesn't make much sense to me. Because it does not reduce lines of code, and I don't think it will reduce the size of the kernel, and the original code is not bad in readab

Re: [PATCH] cpuset: Allow v2 behavior in v1 cgroup

2017-08-15 Thread Zefan Li
On 2017/8/16 1:27, Waiman Long wrote: > Cpuset v2 has some valuable attributes that are not present in > v1 because of backward compatibility concern. One of that is the > restoration of the original cpu and memory node mask after a hot > removal and addition event sequence. > > This patch adds a

Re: [PATCH 3/3] cpuset: make nr_cpusets private

2017-08-01 Thread Zefan Li
, and hence the same rule applies to nr_cpusets. The rule > *is* respected currently, but the mutex is static so nr_cpusets should > be static too. > > Cc: Peter Zijlstra > Cc: Zefan Li > Signed-off-by: Paolo Bonzini Acked-by: Zefan Li > --- > include/linux/cpuset.h |

Re: lib, fs, cgroup: WARNING in percpu_ref_kill_and_confirm

2017-05-31 Thread Zefan Li
On 2017/5/31 22:08, Alexander Potapenko wrote: > On Fri, Mar 24, 2017 at 4:18 AM, Zefan Li wrote: >> On 2017/3/23 22:04, Dmitry Vyukov wrote: >>> Hello, >>> >>> The following program triggers WARNING in percpu_ref_kill_and_confirm: >>&g

Re: [PATCH] perf/x86/intel/cqm: Make sure the head event of cache_groups always has valid RMID

2017-05-15 Thread Zefan Li
any comments? On 2017/5/4 10:31, Zefan Li wrote: > It is assumed that the head of cache_groups always has valid RMID, > which isn't true. > > When we deallocate RMID from conflicting events currently we don't > move them to the tail, and one of those events can h

[PATCH] perf/x86/intel/cqm: Make sure the head event of cache_groups always has valid RMID

2017-05-03 Thread Zefan Li
] worker_thread+0x11b/0x400 Cc: sta...@vger.kernel.org Signed-off-by: Zefan Li --- arch/x86/events/intel/cqm.c | 19 --- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/arch/x86/events/intel/cqm.c b/arch/x86/events/intel/cqm.c index 8c00dc0..c06a5ba 100644 --- a/arch/x

[PATCH] cgroup: avoid attaching a cgroup root to two different superblocks, take 2

2017-04-18 Thread Zefan Li
Commit bfb0b80db5f9 is broken. Now we try to fix the race by delaying the initialization of cgroup root refcnt until a superblock has been allocated. Cc: sta...@vger.kernel.org # 3.16+ Reported-by: Dmitry Vyukov Reported-by: Andrei Vagin Tested-by: Andrei Vagin Signed-off-by: Zefan Li --- I

Re: cgroup: avoid attaching a cgroup root to two different superblocks

2017-04-17 Thread Zefan Li
f cgroup root refcnt until a superblock has been allocated. Cc: sta...@vger.kernel.org # 3.16+ Reported-by: Dmitry Vyukov Reported-by: Andrei Vagin Signed-off-by: Zefan Li --- kernel/cgroup/cgroup-internal.h | 2 +- kernel/cgroup/cgroup-v1.c | 18 -- kernel/cgroup/cgr

Re: [PATCH] Remove cpuset_update_active_cpus()'s parameter.

2017-04-09 Thread Zefan Li
On 2017/4/9 9:36, Rakib Mullick wrote: > In cpuset_update_active_cpus(), cpu_online isn't used anymore. Remove > it. > > Signed-off-by: Rakib Mullick Acked-by: Zefan Li

[PATCH] cgroup: avoid attaching a cgroup root to two different superblocks

2017-04-07 Thread Zefan Li
make sure the superblock pinning is really successful. Cc: sta...@vger.kernel.org # 3.16+ Reported-by: Dmitry Vyukov Signed-off-by: Zefan Li --- kernel/cgroup/cgroup-v1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/cgroup/cgroup-v1.c b/kernel/cgroup/cgroup-v1.c ind

Re: [PATCH] cgroup: switch to BUG_ON()

2017-04-04 Thread Zefan Li
> BUG_ON should be fine) > > Patch is against 4.11-rc3 (localversion-next is next-20170324) > Acked-by: Zefan Li

Re: lib, fs, cgroup: WARNING in percpu_ref_kill_and_confirm

2017-03-23 Thread Zefan Li
On 2017/3/23 22:04, Dmitry Vyukov wrote: > Hello, > > The following program triggers WARNING in percpu_ref_kill_and_confirm: > https://gist.githubusercontent.com/dvyukov/bcfcef3d6b24b9fd841b88ee20c14d4b/raw/a54aeeb09ad1e0659b0ed87ef5efc4480ab2536f/gistfile1.txt > The bug can be triggered immedia

Re: cgroup: WARNING in cgroup_kill_sb

2017-03-09 Thread Zefan Li
On 2017/3/3 3:15, Dmitry Vyukov wrote: > Hello, > > The following program triggers WARNING in cgroup_kill_sb: > https://gist.githubusercontent.com/dvyukov/47a37d3b899ece1f57e512dc6c90bca6/raw/250894f3d6e2954eed01bac39e4c3b7ec59a9c31/gistfile1.txt > > > WARNING: CPU: 2 PID: 3092 at lib/percpu-ref

Re: [PATCHSET for-4.11] cgroup: avoid spurious identity ->*attach() invocations

2017-01-11 Thread Zefan Li
| 161 > ++++ > 3 files changed, 135 insertions(+), 105 deletions(-) > Acked-by: Zefan Li

Re: [PATCHSET] cgroup: reorganize cgroup source files

2016-12-25 Thread Zefan Li
+++ > kernel/cgroup/cgroup-v1.c | 1395 > kernel/cgroup/cgroup.c | 1940 > +++----- > kernel/cgroup/namespace.c | 155 +++ > 7 files changed, 1907 insertions(+), 1802 deletions(-) > Acked-by: Zefan Li

Re: [PATCHSET] kernfs, cgroup: reimplement "cgroup.procs" reading for v2

2016-12-25 Thread Zefan Li
review-cgroup2-procs > > diffstat follows. Thanks. > > fs/kernfs/dir.c |2 > fs/kernfs/file.c| 53 +++-- > fs/kernfs/kernfs-internal.h |2 > include/linux/cgroup-defs.h |3 + > include/linux/kernfs.h | 12 +++- > kernel/cgroup.c | 130 > +--- > 6 files changed, 148 insertions(+), 54 deletions(-) > Acked-by: Zefan Li

Re: [PATCH] cpuset: Remove unused 'struct cpuset*' variable

2016-11-25 Thread Zefan Li
On 2016/11/25 17:46, Arnd Bergmann wrote: > On Friday, November 25, 2016 1:46:04 PM CET Zefan Li wrote: >> On 2016/11/25 12:55, Kirtika Ruchandani wrote: >>> 'struct cpuset* cs' that is set but not used, was introduced in commit >>> 1f7dd3e5a6e4 ("

Re: [PATCH] cpuset: Remove unused 'struct cpuset*' variable

2016-11-24 Thread Zefan Li
> [-Wunused-but-set-variable] > struct cpuset *cs; > ^ > > Fixes: 1f7dd3e5a6e4 ("cgroup: fix handling of multi-destination migration > from subtree_control enabling"). This isn't a bug, so I don't think this tag is proper. > Cc: Tejun Heo > Si

Re: [PATCH 3.4 088/125] ser_gigaset: fix deallocation of platform device structure

2016-10-13 Thread Zefan Li
On 2016/10/13 16:11, Paul Bolle wrote: > On Thu, 2016-10-13 at 10:52 +0800, Zefan Li wrote: >> On 2016/10/12 20:52, Paul Bolle wrote: >>> There has been a follow up for this fix. I'll have to dive into my >>> archive to see why that was needed. >>> >>

Re: [PATCH 3.4 096/125] xen/pciback: Save xen_pci_op commands before processing it

2016-10-12 Thread Zefan Li
On 2016/10/12 20:59, Konrad Rzeszutek Wilk wrote: > On Wed, Oct 12, 2016 at 08:33:32PM +0800, l...@kernel.org wrote: >> From: Konrad Rzeszutek Wilk >> >> 3.4.113-rc1 review patch. If anyone has any objections, please let me know. > > You also need: > > > commit d159457b84395927b5a52adb72f748dd

Re: [PATCH 3.4 088/125] ser_gigaset: fix deallocation of platform device structure

2016-10-12 Thread Zefan Li
On 2016/10/12 20:52, Paul Bolle wrote: > Zefan Li, > > On Wed, 2016-10-12 at 20:33 +0800, l...@kernel.org wrote: >> When shutting down the device, the struct ser_cardstate must not be >> kfree()d immediately after the call to platform_device_unregister() >>

Re: [PATCH 3.4 065/125] drm/ttm: Fixed a read/write lock imbalance

2016-10-12 Thread Zefan Li
On 2016/10/12 21:04, Thomas Hellstrom wrote: > Li, > > IIRC This one goes hand in hand with a vmwgfx (the only user) patch. > Please don't apply until I've figured out whether that patch is also in 3.4. > I'll drop it for now. Thanks!

Re: [PATCH 3.4 081/125] mm, vmstat: allow WQ concurrency to discover memory reclaim doesn't make any progress

2016-10-12 Thread Zefan Li
On 2016/10/12 21:29, Michal Hocko wrote: > On Wed 12-10-16 20:33:17, l...@kernel.org wrote: >> From: Michal Hocko >> >> 3.4.113-rc1 review patch. If anyone has any objections, please let me know. > > Do not forget to take the follow up fix 564e81a57f97 ("mm, vmstat: fix > wrong WQ sleep when mem

Re: [PATCH 3.4 000/125] 3.4.113-rc1 review

2016-10-12 Thread Zefan Li
On 2016/10/13 0:56, Guenter Roeck wrote: > On Wed, Oct 12, 2016 at 08:33:20PM +0800, l...@kernel.org wrote: >> From: Zefan Li >> >> This is the start of the stable review cycle for the 3.4.113 release. >> There are 125 patches in this series, all will be posted as a r

Re: [PATCH 3.4 007/125] recordmcount: Fix endianness handling bug for nop_mcount

2016-10-12 Thread Zefan Li
On 2016/10/12 21:10, Steven Rostedt wrote: > Hi Li, > > What is your plan for EOL of 3.4? I see on kernel.org that the EOL of > 3.4 was suppose to be September 2016 (which has passed). I just gave a > talk yesterday saying it is no longer supported. But I appear to be > mistaken. > I think I'll

Re: [PATCH] cpuset: handle race between CPU hotplug and cpuset_hotplug_work

2016-09-11 Thread Zefan Li
to be identical to online > CPUs eventually. Hence fall back to online CPU mask when there is no > intersection between top cpuset's effective_cpus and online CPU mask. > > Signed-off-by: Joonwoo Park > Cc: Li Zefan > Cc: cgro...@vger.kernel.org > Cc: linux-kernel@vger.k

[PATCH] cpuset: make sure new tasks conform to the current config of the cpuset

2016-08-08 Thread Zefan Li
A new task inherits cpus_allowed and mems_allowed masks from its parent, but if someone changes cpuset's config by writing to cpuset.cpus/cpuset.mems before this new task is inserted into the cgroup's task list, the new task won't be updated accordingly. Signed-off-by: Zefan

Re: [PATCH v3] cgroup: Disable IRQs while holding css_set_lock

2016-06-22 Thread Zefan Li
r.kernel.org > Reviewed-by: Rik van Riel > Reviewed-by: "Luis Claudio R. Goncalves" > Signed-off-by: Daniel Bristot de Oliveira > Acked-by: Zefan Li

Linux 3.4.112

2016-05-03 Thread Zefan Li
te rtas.entry before calling enter_rtas() Vincent Palatin (1): usb: Add device quirk for Logitech PTZ cameras Yao-Wen Mao (1): USB: Add reset-resume quirk for two Plantronics usb headphones. Yishai Hadas (1): IB/uverbs: Fix race between ib_uverbs_open and remove_one Zefan Li (1):

Re: [PATCH] Mark "Out of Date" addresses as undeliverable

2016-04-26 Thread Zefan Li
On 2016/4/26 17:52, Jonathan Corbet wrote: > On Thu, 21 Apr 2016 23:04:26 +0800 > Zhigang Gao wrote: > >> Chinese maintainer for help. Contact the Chinese maintainer, if this >> translation is outdated or there is problem with translation. >> >> -Chinese maintainer: Zhang Le >> +Chinese mai

Re: [PATCH 3.4 00/92] 3.4.112-rc1 review

2016-04-18 Thread Zefan Li
On 2016/4/19 0:37, Guenter Roeck wrote: > On Mon, Apr 18, 2016 at 06:45:38PM +0800, l...@kernel.org wrote: >> From: Zefan Li >> >> This is the start of the stable review cycle for the 3.4.112 release. >> There are 92 patches in this series, all will be posted as a r

Re: [PATCH 3.4 61/92] ocfs2/dlm: fix deadlock when dispatch assert master

2016-04-18 Thread Zefan Li
ppens. >> >> Signed-off-by: Joseph Qi >> Cc: Joel Becker >> Cc: Mark Fasheh >> Cc: "Junxiao Bi" >> Signed-off-by: Andrew Morton >> Signed-off-by: Linus Torvalds >> [lizf: Backported to 3.4: adjust context] >> Signed-off-by: Zefan Li

Re: [PATCH v2] cpuset: use static key better and convert to new API

2016-04-14 Thread Zefan Li
gt; > Signed-off-by: Vlastimil Babka Looks good to me. Acked-by: Zefan Li

Re: [PATCH] Revert "mm/page_alloc: protect pcp->batch accesses with ACCESS_ONCE"

2016-03-30 Thread Zefan Li
On 2016/3/31 9:14, Hekuang wrote: > Hi > > 在 2016/3/30 19:10, Michal Hocko 写道: >> On Wed 30-03-16 18:51:12, Hekuang wrote: >>> hi >>> >>> 在 2016/3/30 18:38, Mel Gorman 写道: On Wed, Mar 30, 2016 at 10:22:07AM +, He Kuang wrote: > This reverts commit 998d39cb236fe464af86a3492a24d2f67ee1e

Re: Patch for CVE-2016-0774 missing from stable 3.4 and 3.10 kernels

2016-03-29 Thread Zefan Li
On 2016/3/29 7:53, Jeffrey Vander Stoep wrote: > https://lkml.org/lkml/2016/2/23/812 "pipe: Fix buffer offset after > partially failed read" is missing from the stable 3.4.y and 3.10.y > kernels. It has been included in 3.2.y and 3.14.y. > > I am able to cause a kernel panic without this patch. >

Linux 3.4.111

2016-03-21 Thread Zefan Li
rds: rds_ib_device.refcount overflow Yao-Wen Mao (1): ALSA: usb-audio: add dB range mapping for some devices Zefan Li (2): Revert "usb: dwc3: Reset the transfer resource index on SET_INTERFACE" Linux 3.4.111 Zhao Junwang (1): drm: add a check for x/y in drm_mode

Re: [PATCH 3.4 098/107] kernel/watchdog.c: touch_nmi_watchdog should only touch local cpu not every one

2016-03-20 Thread Zefan Li
>> diff --git a/kernel/watchdog.c b/kernel/watchdog.c >> index 991aa93..7527c8c 100644 >> --- a/kernel/watchdog.c >> +++ b/kernel/watchdog.c >> @@ -162,6 +162,14 @@ void touch_nmi_watchdog(void) >> per_cpu(watchdog_nmi_touch, cpu) = true; >> } >> } >

Re: [PATCH 3.4 000/107] 3.4.111-rc1 review

2016-03-19 Thread Zefan Li
On 2016/3/17 1:51, Guenter Roeck wrote: > On Wed, Mar 16, 2016 at 04:05:41PM +0800, l...@kernel.org wrote: >> From: Zefan Li >> >> This is the start of the stable review cycle for the 3.4.111 release. >> There are 107 patches in this series, all will be posted as a r

Re: [PATCH 3.4 030/107] NET: AX.25: Stop heartbeat timer on disconnect.

2016-03-19 Thread Zefan Li
On 2016/3/16 18:40, Richard Stearn wrote: > l...@kernel.org wrote: >> From: Richard Stearn >> >> 3.4.111-rc1 review patch. If anyone has any objections, please let me know. > > Hi > > This patch should _not_ be applied. > Breaks other parts of the driver. > Investigations on-going. > > Apologi

Re: [cgroup/for-4.6 1/2] cgroup: re-hash init_css_set after subsystems are initialized

2016-03-02 Thread Zefan Li
t; Fix it by rehashing init_css_set after subsystems are initialized. > While at it, drop unnecessary @key local variable. > > Signed-off-by: Tejun Heo For both patches: Acked-by: Zefan Li

Re: [PATCHSET v2 cgroup/for-4.6] cgroup: make control mask updates modular and recursive

2016-03-02 Thread Zefan Li
ux/kernel/git/tj/cgroup.git > review-recursive-control > > diffstat follows. Thanks. > > include/linux/cgroup-defs.h |3 > kernel/cgroup.c | 760 > +--- > 2 files changed, 446 insertions(+), 317 deletions(-) > Acked-by: Zefan Li

Re: [PATCHSET] cgroup: misc fixes and cleanups

2016-02-22 Thread Zefan Li
t://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup.git review-misc > > diffstat follows. I'll pull in the branch into cgroup/for-4.6 > soonish. > > include/linux/cgroup-defs.h | 12 +- > kernel/cgroup.c | 217 > +++----- > 2 files changed, 102 insertions(+), 127 deletions(-) > Acked-by: Zefan Li

Re: [PATCH] kernel/Makefile: remove the useless CFLAGS_REMOVE_cgroup-debug.o

2016-01-29 Thread Zefan Li
; > Signed-off-by: Li Bin Acked-by: Zefan Li > --- > kernel/Makefile |3 +-- > 1 files changed, 1 insertions(+), 2 deletions(-) > > diff --git a/kernel/Makefile b/kernel/Makefile > index 53abf00..baa55e5 100644 > --- a/kernel/Makefile > +++ b/kernel/Ma

Re: [PATCH] Documentation: cgroup v1: remove section about subsystem as a module.

2016-01-20 Thread Zefan Li
On 2016/1/14 21:46, Rami Rosen wrote: > This patch removes the text relating to compiling cgroup as a module, > since commit 3ed80a62bf95 ("cgroup: drop module support") makes this text not > relevant anymore. > > Signed-off-by: Rami Rosen Acked-by: Zefan Li > --

Re: [PATCH] cpuset: fix cpus_allowed mask for offline/online CPUs

2016-01-03 Thread Zefan Li
On 2016/1/1 20:09, Chen Yu wrote: Commit be4c9dd7aee5 ("cpuset: enable onlined cpu/node in effective masks") leverages cpuset's cpus_allowed and its parent's effective_cpus to calculate the new_cpus by: cpumask_and(&new_cpus, cs->cpus_allowed, parent_cs(cs)->effective_cpus); However cpus_allowe

Re: [PATCH] cpuset: fix cpus_allowed mask for offline/online CPUs

2016-01-03 Thread Zefan Li
On 2016/1/1 20:09, Chen Yu wrote: Commit be4c9dd7aee5 ("cpuset: enable onlined cpu/node in effective masks") leverages cpuset's cpus_allowed and its parent's effective_cpus to calculate the new_cpus by: cpumask_and(&new_cpus, cs->cpus_allowed, parent_cs(cs)->effective_cpus); However cpus_allowe

Re: [PATCH] cgroup: make /proc/cgroups aligned

2016-01-03 Thread Zefan Li
On 2016/1/4 0:08, Geliang Tang wrote: This patch makes /proc/cgroups aligned like this: $ cat /proc/cgroups #subsys_namehierarchy num_cgroups enabled cpuset 11 1 1 cpu2 1 1 cpuacct

Re: [PATCH 2/2] cgroup: put controller Kconfig options in meaningful order

2015-12-17 Thread Zefan Li
On 2015/12/18 6:19, Johannes Weiner wrote: To make it easier to quickly find what's needed list the basic resource controllers of cgroup2 first - io, memory, cpu - while pushing the more exotic and/or legacy controllers to the bottom. Signed-off-by: Johannes Weiner Acked-by: Zef

Re: [PATCH 1/2] cgroup: clean up the kernel configuration menu nomenclature

2015-12-17 Thread Zefan Li
On 2015/12/18 6:19, Johannes Weiner wrote: The config options for the different cgroup controllers use various terms: resource controller, cgroup subsystem, etc. Simplify this to "controller", which is clear enough in the cgroup context. Signed-off-by: Johannes Weiner --- init/Kconfig | 65 ++

Re: cpuset: return -EINVAL for legacy non-subset child creation attempt

2015-12-01 Thread Zefan Li
On 2015/12/1 23:22, Mike Galbraith wrote: A legacy hierarchy child set that is not a subset of its parent is not a permissions issue, it's an invalid configuration. Return -EINVAL. It's sometimes arguable which errno should be used. In this case I don't see why we can't use EACCES. It's even

Re: [PATCH 0/3] cgroup: fix race between cgroup_post_fork() and cgroup_migrate()

2015-11-27 Thread Zefan Li
tested, seems to work; please review. Allowing tasks migrating between cgroups while forking is problematic. I'm more than glad to see those changes. Acked-by: Zefan Li Oleg. include/linux/cgroup-defs.h | 12 ++-- include/linux/cgroup.h| 19 - include/

Re: [PATCH] cpuset: Replace all instances of time_t with time64_t

2015-11-26 Thread Zefan Li
On 2015/11/26 3:01, Tejun Heo wrote: On Wed, Nov 25, 2015 at 04:16:55PM +0100, Arnd Bergmann wrote: The following patch replaces all instances of time_t with time64_t i.e. change the type used for representing time from 32-bit to 64-bit. All 32-bit kernels to date use a signed 32-bit time_t type

Re: [PATCH cgroup/for-4.4-fixes] cgroup: fix cftype->file_offset handling

2015-11-06 Thread Zefan Li
d destroyed. This also makes keeping them on per-cgroup list unnecessary. Signed-off-by: Tejun Heo Reported-by: James Sedgwick Fixes: 6f60eade2433 ("cgroup: generalize obtaining the handles of and notifying cgroup files") Acked-by: Zefan Li -- To unsubscribe from this list: send th

Re: [PATCH cgroup/for-4.4] cgroup: fix race condition around termination check in css_task_iter_next()

2015-10-28 Thread Zefan Li
;cset_pos as they indicate the same condition and @it->task_pos is what's being dereferenced. Signed-off-by: Tejun Heo Reported-by: Calvin Owens Fixes: ed27b9f7a17d ("cgroup: don't hold css_set_rwsem across css task iteration") Acked-by: Zefan Li -- To unsubscribe from thi

Re: [PATCH v2 cgroup/for-4.4 3/3] cgroup: replace unified-hierarchy.txt with a proper cgroup v2 documentation

2015-10-25 Thread Zefan Li
mode 100644 Documentation/cgroup-legacy/unified-hierarchy.txt create mode 100644 Documentation/cgroup.txt Looks good to me. For all three patches: Acked-by: Zefan Li -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.

Linux 3.4.110

2015-10-21 Thread Zefan Li
counter being stopped before reprogramming Willem de Bruijn (1): packet: avoid out of bounds read in round robin fanout Zefan Li (4): Revert "drm/radeon: Use drm_calloc_ab for CS relocs" crypto: s390/ghash: Fix incorrect backport of a1cae34e23b1 ARM: Fix incor

Re: [PATCH 3.4 17/65] fixing infinite OPEN loop in 4.0 stateid recovery

2015-10-21 Thread Zefan Li
nfs_inode_find_state_and_recover() after returning from calling recover_open() function. Signed-off-by: Olga Kornievskaia mailto:ko...@netapp.com>> Signed-off-by: Trond Myklebust mailto:trond.mykleb...@primarydata.com>> [lizf: Backported to 3.4: adjust context] Signed-off-by: Zefan Li ma

Re: [PATCH 3.4 00/65] 3.4.110-rc1 review

2015-10-21 Thread Zefan Li
Build results: total: 97 pass: 96 fail: 1 Failed builds: m68k:sun3_defconfig Qemu test results: total: 63 pass: 63 fail: 0 Build failure is due to inconsistent kallsyms data when building m68k:sun3_defconfig. From the build log: Inconsistent kallsyms data This is

Re: [PATCH 3.4 00/65] 3.4.110-rc1 review

2015-10-20 Thread Zefan Li
On 2015/10/20 15:05, Geert Uytterhoeven wrote: On Tue, Oct 20, 2015 at 4:17 AM, Guenter Roeck wrote: On 10/19/2015 05:47 PM, l...@kernel.org wrote: From: Zefan Li This is the start of the stable review cycle for the 3.4.110 release. There are 65 patches in this series, all will be posted as

Re: [PATCH 3.4 00/65] 3.4.110-rc1 review

2015-10-19 Thread Zefan Li
This is the combined patch for 3.4.110-rc1 relative to 3.4.109. --- diff --git a/Documentation/networking/pktgen.txt b/Documentation/networking/pktgen.txt index 75e4fd7..a03239c 100644 --- a/Documentation/networking/pktgen.txt +++ b/Documentation/networking/pktgen.txt @@ -24,17 +24,33 @@ For mo

Re: [PATCHSET cgroup/for-4.4] cgroup: make zombies retain cgroup membership and fix pids controller

2015-10-19 Thread Zefan Li
Hi Tejun, On 2015/10/16 4:41, Tejun Heo wrote: On Wed, Oct 14, 2015 at 09:38:09PM -0400, Tejun Heo wrote: Hello, On Fri, Oct 09, 2015 at 11:29:27PM -0400, Tejun Heo wrote: The patchset is pretty lightly tested and I need to verify that the corner cases behave as expected. Fixed several bugs

Re: pidns: Make pid accounting and pid_max per namespace

2015-10-09 Thread Zefan Li
On 2015/10/9 18:29, Zhang Haoyu wrote: I started multiple docker containers in centos6.6(linux-2.6.32-504.16.2), and there's one bad program was running in one container. This program produced many child threads continuously without free, so more and more pid numbers were consumed by this program

Re: [BUG] 3.4.109 - unable to handle kernel NULL pointer dereference at (null)

2015-10-07 Thread Zefan Li
(back from vacation) On 2015/10/4 12:26, Cal Peake wrote: On Thu, 1 Oct 2015, Steven Rostedt wrote: I merged 3.4.109 into 3.4-rt, and it bugged. I then booted 3.4.109 vanilla and it bugged too. 3.4.108 is fine. I guess this is caused by the following commit, which has already been revert

Linux 3.4.109

2015-09-21 Thread Zefan Li
meout calculation when bmc is disconnected Yann Droneaud (1): IB/core: disallow registering 0-sized memory region Zefan Li (1): Linux 3.4.109 Zidan Wang (2): ASoC: wm8960: fix "RINPUT3" audio route error ASoC: wm8994: correct BCLK DIV 348 to 384 Documentati

Re: [PATCHSET] cgroup: use static_keys for subsystem enabled and on_dfl tests

2015-09-18 Thread Zefan Li
ons(+), 95 deletions(-) Acked-by: Zefan Li -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH 3.4 000/146] 3.4.109-rc1 review

2015-09-17 Thread Zefan Li
On 2015/9/18 9:45, Zefan Li wrote: On 2015/9/15 22:22, Guenter Roeck wrote: On 09/15/2015 02:03 AM, l...@kernel.org wrote: From: Zefan Li This is the start of the stable review cycle for the 3.4.109 release. There are 146 patches in this series, all will be posted as a response to this one

Re: [PATCH 3.4 000/146] 3.4.109-rc1 review

2015-09-17 Thread Zefan Li
On 2015/9/15 22:22, Guenter Roeck wrote: On 09/15/2015 02:03 AM, l...@kernel.org wrote: From: Zefan Li This is the start of the stable review cycle for the 3.4.109 release. There are 146 patches in this series, all will be posted as a response to this one. If anyone has any issues with these

Re: [PATCH] cgroup: fix seq_show_option merge with legacy_name

2015-09-08 Thread Zefan Li
On 2015/9/9 2:30, Kees Cook wrote: When seq_show_option (068acf2ee776) was merged, it did not correctly collide with cgroup's addition of legacy_name (3e1d2eed39d8) changes. This fixes the reported name. Signed-off-by: Kees Cook Acked-by: Zefan Li -- To unsubscribe from this list: sen

Re: [PATCH cgroup/for-4.3 1/3] cgroup: replace error handling in cgroup_init() with WARN_ON()s

2015-08-10 Thread Zefan Li
On 2015/8/6 1:20, Tejun Heo wrote: The init sequence shouldn't fail short of bugs and even when it does it's better to continue with the rest of initialization and we were silently ignoring /proc/cgroups creation failure. Drop the explicit error handling and wrap sysfs_create_mount_point(), regi

Re: [PATCH cgroup/for-4.3 3/3] cgroup: replace __DEVEL__sane_behavior with cgroup2 fs type

2015-08-10 Thread Zefan Li
On 2015/8/6 1:21, Tejun Heo wrote: With major controllers - cpu, memory and io - shaping up for the unified hierarchy, cgroup2 is about ready to be, gradually, released into the wild. Replace __DEVEL__sane_behavior flag which was used to select the unified hierarchy with a separate filesystem ty

Re: [PATCH 2/4] cgroup: define controller file conventions

2015-08-05 Thread Zefan Li
On 2015/8/3 4:23, Tejun Heo wrote: > Traditionally, each cgroup controller implemented whatever interface > it wanted leading to interfaces which are widely inconsistent. > Examining the requirements of the controllers readily yield that there > are only a few control schemes shared among all. > >

Re: [PATCH 1/4] cgroup: export cgrp_dfl_root

2015-08-05 Thread Zefan Li
On 2015/8/3 4:23, Tejun Heo wrote: > While cgroup subsystems can't be modules, blkcg supports dynamically > loadable policies which interact with cgroup core. Export > cgrp_dfl_root so that cgroup_on_dfl() can be used in those modules. > > Signed-off-by: Tejun Heo > Cc: Li Zefan > Cc: Johannes

Re: [PATCH 02/10] cgroup: introduce cgroup_subsys->legacy_name

2015-07-28 Thread Zefan Li
On 2015/7/25 2:43, Tejun Heo wrote: > This allows cgroup subsystems to use a different name on the unified > hierarchy. cgroup_subsys->name is used on the unified hierarchy, > ->legacy_name elsewhere. If ->legacy_name is not explicitly set, it's > automatically set to ->name and the userland visi

Re: [PATCH 01/10] cgroup: don't print subsystems for the default hierarchy

2015-07-28 Thread Zefan Li
On 2015/7/25 2:43, Tejun Heo wrote: > It doesn't make sense to print subsystems on mount option or > /proc/PID/cgroup for the default hierarchy. > > * cgroup.controllers file at the root of the default hierarchy lists > the currently attached controllers. > > * The default hierarchy is catch-al

Re: [PATCH 02/10] cgroup: introduce cgroup_subsys->legacy_name

2015-07-27 Thread Zefan Li
> @@ -1448,7 +1451,8 @@ static int parse_cgroupfs_options(char *data, struct > cgroup_sb_opts *opts) > } > > for_each_subsys(ss, i) { > - if (strcmp(token, ss->name)) > + if (strcmp(token, ss->name) && > +

Re: [PATCH 1/6] cgroup: make cftype->private a unsigned long

2015-06-29 Thread Zefan Li
On 2015/6/26 5:38, Tejun Heo wrote: > It's pretty unusual to have an int as a private data field and it > makes it impossible to carray a pointer value through it. Let's make > it an unsigned long. AFAICS, this shouldn't break anything. > > Signed-off-by: Tejun Heo > Cc: Johannes Weiner > Cc:

Linux 3.4.108

2015-06-22 Thread Zefan Li
: net: use for_each_netdev_safe() in rtnl_group_changelink() Yann Droneaud (1): IB/core: don't disallow registering region starting at 0x0 Yinghai Lu (1): PCI: Convert pcibios_resource_to_bus() to take a pci_bus, not a pci_dev Zefan Li (

Re: [PATCH 3.4 000/172] 3.4.108-rc1 review

2015-06-17 Thread Zefan Li
On 2015/6/16 23:13, Ian Campbell wrote: > On Tue, 2015-06-16 at 16:33 +0800, l...@kernel.org wrote: >> From: Zefan Li >> >> This is the start of the stable review cycle for the 3.4.108 release. >> There are 172 patches in this series, all will be posted as a response

Re: [PATCH 3.4 035/172] ALSA: hdspm - Constrain periods to 2 on older cards

2015-06-17 Thread Zefan Li
>> @@ -6042,6 +6042,12 @@ static int snd_hdspm_capture_open(struct >> snd_pcm_substream *substream) >> snd_pcm_hw_constraint_minmax(runtime, >> SNDRV_PCM_HW_PARAM_PERIOD_SIZE, >> 64, 8192); >> +

Re: [PATCH 3.4 000/172] 3.4.108-rc1 review

2015-06-17 Thread Zefan Li
On 2015/6/16 16:49, Guenter Roeck wrote: > On 06/16/2015 01:33 AM, l...@kernel.org wrote: >> From: Zefan Li >> >> This is the start of the stable review cycle for the 3.4.108 release. >> There are 172 patches in this series, all will be posted as a response >>

  1   2   3   >