Whamcloud - gitweb
LU-10467 mdc: change ssleep to msleep_interruptible
[fs/lustre-release.git] / lustre / mdc / mdc_request.c
index f20f101..cc71e1b 100644 (file)
@@ -1088,7 +1088,12 @@ restart_bulk:
                               exp->exp_obd->obd_name, -EIO);
                        RETURN(-EIO);
                }
-               ssleep(resends);
+
+               /* If a signal interrupts then the timeout returned will
+                * not be zero. In that case return -EINTR
+                */
+               if (msleep_interruptible(resends * 1000))
+                       RETURN(-EINTR);
 
                goto restart_bulk;
        }