Whamcloud - gitweb
b=20563 flush seq fix
authorpravin <Pravin.Shelar@Sun.COM>
Mon, 5 Jul 2010 14:24:34 +0000 (19:54 +0530)
committerjohann <johann@granier.local>
Mon, 5 Jul 2010 14:38:57 +0000 (16:38 +0200)
i=alexander.zarochentsev
i=rahul

always flush seq on OBD_NOTIFY_INACTIVE event.

lustre/mdc/mdc_request.c

index 9d4d0f4..568a78d 100644 (file)
@@ -1335,8 +1335,7 @@ static int mdc_import_event(struct obd_device *obd, struct obd_import *imp,
                 /* Flush current sequence to make client obtain new one
                  * from server in case of disconnect/reconnect.
                  * If range is already empty then no need to flush it. */
-                if (cli->cl_seq != NULL &&
-                    !range_is_exhausted(&cli->cl_seq->lcs_space))
+                if (cli->cl_seq != NULL)
                         seq_client_flush(cli->cl_seq);
 
                 rc = obd_notify_observer(obd, obd, OBD_NOTIFY_INACTIVE, NULL);