From 83ae17df2bdce837e62473aec27c03d67312c8ea Mon Sep 17 00:00:00 2001 From: Bobi Jam Date: Sun, 28 Apr 2013 17:11:40 +0800 Subject: [PATCH 1/1] 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 --- 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 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); } -- 1.8.3.1