From: Bobi Jam Date: Mon, 12 May 2014 14:04:23 +0000 (+0800) Subject: LU-3188 osc: shorten IO calling path X-Git-Tag: 2.6.0-RC1~77 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F92%2F10292%2F5;p=fs%2Flustre-release.git 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. This is revive of git commit 83ae17df2bdce837e62473aec27c03d67312c8ea. Signed-off-by: Bobi Jam Change-Id: I2ac32866f7adbc4701370704612c849a18a5d1ac Reviewed-on: http://review.whamcloud.com/10292 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Jinshan Xiong Reviewed-by: Niu Yawei Reviewed-by: Oleg Drokin --- diff --git a/lustre/osc/osc_cache.c b/lustre/osc/osc_cache.c index 545e0a3..527618a 100644 --- a/lustre/osc/osc_cache.c +++ b/lustre/osc/osc_cache.c @@ -2620,7 +2620,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); }