From: Bobi Jam Date: Sun, 28 Apr 2013 09:11:40 +0000 (+0800) Subject: LU-3188 osc: shorten IO calling path X-Git-Tag: 2.3.65~10 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=83ae17df2bdce837e62473aec27c03d67312c8ea;hp=c864582b5d4541c7830d628457e55cd859aee005 LU-3188 osc: shorten IO calling path By using osc_io_unplug_aync() for osc_queue_sync_pages() to shorten the IO calling path, to reduce the chance of stack overflow. Signed-off-by: Bobi Jam Change-Id: I06112d9fb7b069d68c7945641e65d6430d0bb380 Reviewed-on: http://review.whamcloud.com/6191 Tested-by: Hudson Tested-by: Maloo Reviewed-by: Jinshan Xiong Reviewed-by: Niu Yawei Reviewed-by: Keith Mannthey Reviewed-by: Oleg Drokin --- diff --git a/lustre/osc/osc_cache.c b/lustre/osc/osc_cache.c index b898d93..e7bfc47 100644 --- a/lustre/osc/osc_cache.c +++ b/lustre/osc/osc_cache.c @@ -2668,7 +2668,7 @@ int osc_queue_sync_pages(const struct lu_env *env, struct osc_object *obj, } osc_object_unlock(obj); - osc_io_unplug(env, cli, obj, PDL_POLICY_ROUND); + osc_io_unplug_async(env, cli, obj); RETURN(0); }