lkml.org 
[lkml]   [2023]   [Jan]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH-next v2] lib: parser: optimize match_NUMER apis to use local array
On Tue, Jan 10, 2023 at 09:49:21PM +0800, lilingfeng (A) wrote:
>
> 在 2022/12/13 22:17, Li Lingfeng 写道:
> > Memory will be allocated to store substring_t in match_strdup(), which means
> > the caller of match_strdup() may need to be scheduled out to wait for reclaiming
> > memory.
> >
> > Using local array to store substring_t to remove the restriction.
> >
> > Link: https://lore.kernel.org/all/20221104023938.2346986-5-yukuai1@huaweicloud.com/
> > Signed-off-by: Li Lingfeng <lilingfeng3@huawei.com>
> > ---
> > v1->v2:
> > change the name of buffer's length
> > use match_strlcpy() to copy string and keep string length check
> > lib/parser.c | 42 +++++++++++++++++++++++-------------------
> > 1 file changed, 23 insertions(+), 19 deletions(-)
> >
> > diff --git a/lib/parser.c b/lib/parser.c
>
> I can't find the maintainer of this module through the script, does anyone
> know?

Oh, send it to Andrew Morton <akpm@linux-foundation.org>.

Thanks.

--
tejun

\
 
 \ /
  Last update: 2023-03-26 23:35    [W:0.052 / U:0.472 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site