From 481c90a66b59ee75e7a41adf202d5a59d9aea616 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Mon, 27 Aug 2012 21:10:09 +0000 Subject: [PATCH] scst: Add a comment in scst_global_mgmt_thread() Signed-off-by: Bart Van Assche git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4482 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/scst_targ.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/scst/src/scst_targ.c b/scst/src/scst_targ.c index 19c560fd3..55dd09990 100644 --- a/scst/src/scst_targ.c +++ b/scst/src/scst_targ.c @@ -6821,9 +6821,14 @@ int scst_global_mgmt_thread(void *arg) list_del(&sess->sess_init_list_entry); spin_unlock_irq(&scst_mgmt_lock); - if (sess->init_phase == SCST_SESS_IPH_INITING) + if (sess->init_phase == SCST_SESS_IPH_INITING) { + /* + * Note: it's not necessary to free the session + * here if initialization fails. See also the + * comment block above scst_register_session(). + */ scst_init_session(sess); - else { + } else { PRINT_CRIT_ERROR("session %p is in " "scst_sess_init_list, but in unknown " "init phase %x", sess,