Re: [Ocfs2-devel] [PATCH] ocfs2: Remove unneeded return variable

2021-02-04 Thread Wengang Wang
Actually I think the macro of map_flag() is ugly. Yang may want to fix that first. Thanks, Wengang On 2/3/21 9:12 PM, Joseph Qi wrote: NAK. This was discussed before, please refer: https://oss.oracle.com/pipermail/ocfs2-devel/2020-April/014969.html Thanks, Joseph On 2/4/21 11:12 AM, Yang Li

Re: [Ocfs2-devel] [PATCH V3 2/2] ocfs2: add locking filter debugfs file

2019-05-24 Thread Wengang Wang
Hi Gang, OK, I was thinking you are dumping the new last access time field too. thanks, wengang On 2019/5/23 19:15, Gang He wrote: Hello Wengang, This patch is used to add a filter attribute(the default value is 0), the kernel module can use this attribute value to filter the lock resources

Re: [PATCH] mm: use this_cpu_cmpxchg_double in put_cpu_partial

2018-11-26 Thread Wengang Wang
On 2018/11/26 16:36, Wei Yang wrote: On Mon, Nov 26, 2018 at 08:57:54AM -0800, Wengang Wang wrote: On 2018/11/25 17:59, Wei Yang wrote: On Tue, Nov 20, 2018 at 10:58 AM zhong jiang wrote: On 2018/11/17 9:33, Wengang Wang wrote: The this_cpu_cmpxchg makes the do-while loop pass as long

Re: [PATCH] mm: use this_cpu_cmpxchg_double in put_cpu_partial

2018-11-26 Thread Wengang Wang
On 2018/11/25 17:59, Wei Yang wrote: On Tue, Nov 20, 2018 at 10:58 AM zhong jiang wrote: On 2018/11/17 9:33, Wengang Wang wrote: The this_cpu_cmpxchg makes the do-while loop pass as long as the s->cpu_slab->partial as the same value. It doesn't care what happened to that slab. I

Re: [PATCH] mm: use this_cpu_cmpxchg_double in put_cpu_partial

2018-11-20 Thread Wengang Wang
: On Tue, Nov 20, 2018 at 09:58:58AM -0800, Wengang Wang wrote: Hi Wei, On 2018/11/17 17:02, Wei Yang wrote: On Fri, Nov 16, 2018 at 05:33:35PM -0800, Wengang Wang wrote: The this_cpu_cmpxchg makes the do-while loop pass as long as the s->cpu_slab->partial as the same value. It doesn'

Re: [PATCH] mm: use this_cpu_cmpxchg_double in put_cpu_partial

2018-11-20 Thread Wengang Wang
Hi Zhong, On 2018/11/19 18:18, zhong jiang wrote: On 2018/11/17 9:33, Wengang Wang wrote: The this_cpu_cmpxchg makes the do-while loop pass as long as the s->cpu_slab->partial as the same value. It doesn't care what happened to that slab. Interrupt is not disabled, and new all

Re: [PATCH] mm: use this_cpu_cmpxchg_double in put_cpu_partial

2018-11-20 Thread Wengang Wang
Hi Wei, On 2018/11/17 17:02, Wei Yang wrote: On Fri, Nov 16, 2018 at 05:33:35PM -0800, Wengang Wang wrote: The this_cpu_cmpxchg makes the do-while loop pass as long as the s->cpu_slab->partial as the same value. It doesn't care what happened to that slab. Interrupt is not disabl

[PATCH] mm: use this_cpu_cmpxchg_double in put_cpu_partial

2018-11-16 Thread Wengang Wang
ly want no alloc/free happen in between, but just want to make sure the first slab did expereince a remove and re-add. This patch is more to call for ideas. Signed-off-by: Wengang Wang --- mm/slub.c | 20 +--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/mm/slub

[PATCH v1] xen/grant-table: log the lack of grants

2017-07-07 Thread Wengang Wang
. Signed-off-by: Wengang Wang Reviewed-by: Konrad Rzeszutek Wilk Reviewed-by: Junxiao Bi --- drivers/xen/grant-table.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/xen/grant-table.c b/drivers/xen/grant-table.c index d6786b8..2c6a911 100644 --- a/drivers/xen/grant

Re: [PATCH] add check do_direct_IO() return val

2007-07-26 Thread wengang wang
dio_cleanup(dio); break; } @@ -1113,6 +1115,7 @@ direct_io_worker(int rw, struct kiocb *i } else BUG_ON(ret != -EIOCBQUEUED); +out: return ret; } -- Wengang Wang Member of Technical Staff Or