Logged In: NO

correction,
rather than task =
find_session_mgmt_task(session,session->mgmt->itt)
it is task = find_task_for_cmnd(session, sc);
rest is the same.