opensm/osm_opensm.c: no report when SM is exiting
Don't bother reporting events to plug-ins while SM is exiting.
--- opensm/opensm/osm_opensm.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
opensm/opensm/osm_opensm.c +1 -1
@@ -475,7 +475,7 @@ void osm_opensm_report_event(osm_opensm_t *osm, osm_epi_event_id_t event_id,cl_list_item_t *item;for (item =cl_qlist_head (&osm->plugin_list); - item !=cl_qlist_end (&osm->plugin_list); + (!osm_exit_flag) && (item !=cl_qlist_end (&osm->plugin_list)); item =cl_qlist_next (item)) {osm_epi_plugin_t *p = (osm_epi_plugin_t *)item;if (p->impl->report)
Signature · 6 lines
1.6.2.4 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 1 line · On Wed, 18 Aug 2010 06:38:14 -0700 Yevgeny Kliteynik…
Don't bother reporting events to plug-ins while SM is exiting.
Does this fix a bug?
Ira
Quoted 27 lines
Signed-off-by Yevgeny Kliteynik <[email protected]>--- opensm/opensm/osm_opensm.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)opensm/opensm/osm_opensm.c +1
-1@@ -475,7 +475,7 @@ void osm_opensm_report_event(osm_opensm_t *osm, osm_epi_event_id_t event_id,cl_list_item_t *item;for (item =cl_qlist_head (&osm->plugin_list); - item !=cl_qlist_end (&osm->plugin_list); + (!osm_exit_flag) && (item !=cl_qlist_end (&osm->plugin_list)); item =cl_qlist_next (item)) {osm_epi_plugin_t *p = (osm_epi_plugin_t *)item;if (p->impl->report)Signature · 6 lines
1.6.2.4 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://*vger.kernel.org/majordomo-info.html
Signature · 9 lines
Ira Weiny Math Programmer/Computer Scientist Lawrence Livermore National Lab 925-423-8008 [email protected] -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 6 lines · Ira Weiny
Quoted 1 line · On Wed, 18 Aug 2010 06:38:14 -0700 Yevgeny…
Don't bother reporting events to plug-ins while SM is exiting.
Does this fix a bug?
Don't think so (at least not that I'm aware of it). For me, the issue here is optimization.
-- Yevgeny
Quoted 24 lines
Ira
Quoted 22 lines
Signed-off-by Yevgeny Kliteynik<[email protected]>--- opensm/opensm/osm_opensm.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)opensm/opensm/osm_opensm.c +1
-1@@ -475,7 +475,7 @@ void osm_opensm_report_event(osm_opensm_t *osm, osm_epi_event_id_t event_id,cl_list_item_t *item;for (item =cl_qlist_head (&osm->plugin_list); - item !=cl_qlist_end (&osm->plugin_list); + (!osm_exit_flag)&& (item !=cl_qlist_end (&osm->plugin_list)); item =cl_qlist_next (item)) {osm_epi_plugin_t *p = (osm_epi_plugin_t *)item;if (p->impl->report)Signature · 1 line
1.6.2.4
Quoted 7 lines
Quoted 5 lines
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://*vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 10 lines · On Wed, 18 Aug 2010 14:58:44 -0700 Yevgeny Kliteynik…
Quoted 6 lines · Ira Weiny
Quoted 1 line · On Wed, 18 Aug 2010 06:38:14 -0700 Yevgeny…
Don't bother reporting events to plug-ins while SM is exiting.
Does this fix a bug?
Don't think so (at least not that I'm aware of it). For me, the issue here is optimization.
Does this delay exit? Is that the optimization.
I wonder if plugins would want to know the SM is shutting down. But there is a "delete" function... ?
Ira
Quoted 36 lines
-- Yevgeny
Quoted 31 lines
Ira
Quoted 27 lines
Signed-off-by Yevgeny Kliteynik<[email protected]>--- opensm/opensm/osm_opensm.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)opensm/opensm/osm_opensm.c +1
-1@@ -475,7 +475,7 @@ void osm_opensm_report_event(osm_opensm_t *osm, osm_epi_event_id_t event_id,cl_list_item_t *item;for (item =cl_qlist_head (&osm->plugin_list); - item !=cl_qlist_end (&osm->plugin_list); + (!osm_exit_flag)&& (item !=cl_qlist_end (&osm->plugin_list)); item =cl_qlist_next (item)) {osm_epi_plugin_t *p = (osm_epi_plugin_t *)item;if (p->impl->report)Signature · 6 lines
1.6.2.4 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://**vger.kernel.org/majordomo-info.html
Signature · 9 lines
Ira Weiny Math Programmer/Computer Scientist Lawrence Livermore National Lab 925-423-8008 [email protected] -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 7 lines · Ira Weiny
Quoted 4 lines · On Wed, 18 Aug 2010 14:58:44 -0700 Yevgeny…
Quoted 3 lines · Ira Weiny
On Wed, 18 Aug 2010 06:38:14 -0700
Yevgeny Kliteynik<[email protected]> wrote:
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
Quoted 1 line
Don't bother reporting events to plug-ins while SM is exiting.
Does this fix a bug?
Don't think so (at least not that I'm aware of it). For me, the issue here is optimization.
Does this delay exit? Is that the optimization.
Yes.
When SM catches SIGTERM, it marks osm_exit_flag.
However, it doesn't mean that SM will stop doing
whatever it's doing and start exiting - if SM is
in the middle of calling plug-ins, it will
continue calling them.
Quoted 2 lines
I wonder if plugins would want to know the SM is shutting down. But there is a "delete" function... ?
The "delete" function allows plug-ins to know when SM is exiting (if they want to know it).
-- Yevgeny
Quoted 40 lines
Ira
Quoted 36 lines
-- Yevgeny
Quoted 31 lines
Ira
Quoted 27 lines
Signed-off-by Yevgeny Kliteynik<[email protected]>--- opensm/opensm/osm_opensm.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)opensm/opensm/osm_opensm.c +1
-1@@ -475,7 +475,7 @@ void osm_opensm_report_event(osm_opensm_t *osm, osm_epi_event_id_t event_id,cl_list_item_t *item;for (item =cl_qlist_head (&osm->plugin_list); - item !=cl_qlist_end (&osm->plugin_list); + (!osm_exit_flag)&& (item !=cl_qlist_end (&osm->plugin_list)); item =cl_qlist_next (item)) {osm_epi_plugin_t *p = (osm_epi_plugin_t *)item;if (p->impl->report)Signature · 6 lines
1.6.2.4 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://**vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Sasha Khapyorsky
AppliedQuoted 3 lines · Yevgeny Kliteynik
Don't bother reporting events to plug-ins while SM is exiting.
Signed-off-by Yevgeny Kliteynik <[email protected]>
Applied. Thanks.
Sasha
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html