diff options
author | Mike Christie <michaelc@cs.wisc.edu> | 2009-02-22 18:37:59 -0600 |
---|---|---|
committer | Mike Christie <michaelc@cs.wisc.edu> | 2009-02-22 18:37:59 -0600 |
commit | ef0357c4728ebba1a4b91a7f6d69c729a5f9e6e3 (patch) | |
tree | f76cc4b3905f7fe534cdb8b358cd3422652569c5 | |
parent | 7ec0be1b38ea11b6de4e859492cbc12aea8e4ba0 (diff) | |
download | open-iscsi-ef0357c4728ebba1a4b91a7f6d69c729a5f9e6e3.tar.gz |
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.
-rw-r--r-- | usr/event_poll.c | 10 |
1 files 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(); } } |