From ef0357c4728ebba1a4b91a7f6d69c729a5f9e6e3 Mon Sep 17 00:00:00 2001 From: Mike Christie Date: Sun, 22 Feb 2009 18:37:59 -0600 Subject: iscsid: mv sysfs cache cleanup mv sysfs cache cleanup so it runs after the actor test, because software iscsi could run for a while without ever firing a kernel or mgmt event, but the sysfs layout could still change. --- usr/event_poll.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/usr/event_poll.c b/usr/event_poll.c index 9831eea..691645b 100644 --- a/usr/event_poll.c +++ b/usr/event_poll.c @@ -96,11 +96,6 @@ void event_loop(struct iscsi_ipc *ipc, int control_fd, int mgmt_ipc_fd, res = poll(poll_array, POLL_MAX, ACTOR_RESOLUTION); if (res > 0) { log_debug(6, "poll result %d", res); - /* - * flush sysfs cache since kernel objs may - * have changed as a result of handling op - */ - sysfs_cleanup(); if (poll_array[POLL_CTRL].revents) ipc->ctldev_handle(); @@ -121,5 +116,10 @@ void event_loop(struct iscsi_ipc *ipc, int control_fd, int mgmt_ipc_fd, } else actor_poll(); reaper(); + /* + * flush sysfs cache since kernel objs may + * have changed as a result of handling op + */ + sysfs_cleanup(); } } -- cgit v1.2.1