Whamcloud - gitweb
b=18213 really interrupt the sleep in osc_enter_cache on signals
authoryangsheng <sheng.yang@sun.com>
Sat, 19 Dec 2009 17:43:56 +0000 (01:43 +0800)
committerAndrew Perepechko <andrew.perepechko@sun.com>
Mon, 21 Dec 2009 10:24:12 +0000 (13:24 +0300)
i=zhanghc
i=yangsheng

lustre/osc/osc_request.c

index abb9096..587656c 100644 (file)
@@ -2737,7 +2737,7 @@ static int osc_enter_cache(struct client_obd *cli, struct lov_oinfo *loi,
                            struct osc_async_page *oap)
 {
         struct osc_cache_waiter ocw;
-        struct l_wait_info lwi = { 0 };
+        struct l_wait_info lwi = LWI_INTR(LWI_ON_SIGNAL_NOOP, NULL);
         ENTRY;
 
         CDEBUG(D_CACHE, "dirty: %ld/%d dirty_max: %ld/%d dropped: %lu "