lkml.org 
[lkml]   [2013]   [Apr]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH 3/3] f2fs: enhnace alloc_nid and build_free_nids flows
From
2013/4/25, Jaegeuk Kim <jaegeuk.kim@samsung.com>:
> In order to avoid build_free_nid lock contention, let's change the order of
> function calls as follows.
>
> At first, check whether there is enough free nids.
> - If available, just get a free nid with spin_lock without any overhead.
> - Otherwise, conduct build_free_nids.
> : scan nat pages, journal nat entries, and nat cache entries.
>
> We should consider carefullly not to serve free nids intermediately made by
> build_free_nids.
> We can get stable free nids only after build_free_nids is done.
>
> Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
I can't find any issues in this patch.
Reviewed-by: Namjae Jeon <namjae.jeon@samsung.com>

Thanks.
> ---


\
 
 \ /
  Last update: 2013-04-26 04:21    [W:0.454 / U:0.264 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site