From 5bc6be85c7b5434917791f97a199b16f6c8bf533 Mon Sep 17 00:00:00 2001 From: Bobi Jam Date: Mon, 12 May 2014 22:04:23 +0800 Subject: [PATCH] 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 --- lustre/osc/osc_cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 1.8.3.1