Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b44c295d authored by Niu Yawei's avatar Niu Yawei Committed by Greg Kroah-Hartman
Browse files

staging: lustre: recovery: don't skip open replay on reconnect



Once reconnect happened during replay, we'd continue the open
replay with the last failed replay, but not the next.

Signed-off-by: default avatarNiu Yawei <yawei.niu@intel.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6802
Reviewed-on: http://review.whamcloud.com/15871


Reviewed-by: default avatarJinshan Xiong <jinshan.xiong@intel.com>
Reviewed-by: default avatarHongchao Zhang <hongchao.zhang@intel.com>
Reviewed-by: default avatarOleg Drokin <oleg.drokin@intel.com>
Signed-off-by: default avatarJames Simmons <jsimmons@infradead.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c2242d14
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -111,6 +111,8 @@ int ptlrpc_replay_next(struct obd_import *imp, int *inflight)
			 * all of it's requests being replayed, it's safe to
			 * use a cursor to accelerate the search
			 */
			if (!imp->imp_resend_replay ||
			    imp->imp_replay_cursor == &imp->imp_committed_list)
				imp->imp_replay_cursor = imp->imp_replay_cursor->next;

			while (imp->imp_replay_cursor !=