Commit 43dddbd0 authored by Mikhail Pershin's avatar Mikhail Pershin Committed by Oleg Drokin
Browse files

LU-10756 ptlrpc: fix IMP_CLOSED state is being never set

Commit cf78502e checks the new state for IMP_CLOSED value
instead of import current state so instead of keeping import
closed it prevents import state from being set to IMP_CLOSE

Patch restores original check to keep import closed by
checking its current state

Fixes: cf78502e

 ("LU-10756 ptlrpc: change IMPORT_SET_* macros into real functions")
Signed-off-by: default avatarMikhail Pershin <>
Change-Id: I7df2798f09ce7023381c03957adf530da4149c2d

Reviewed-by: default avatarJames Simmons <>
Reviewed-by: default avatarAndreas Dilger <>
Tested-by: default avatarjenkins <>
Tested-by: default avatarMaloo <>
Reviewed-by: default avatarOleg Drokin <>
parent 0a80afc5
......@@ -76,7 +76,7 @@ static void import_set_state_nolock(struct obd_import *imp,
/* A CLOSED import should remain so. */
if (state == LUSTRE_IMP_CLOSED)
if (imp->imp_state == LUSTRE_IMP_CLOSED)
if (imp->imp_state != LUSTRE_IMP_NEW) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment