diff options
author | Dan Williams <dan.j.williams@intel.com> | 2011-03-02 11:49:26 -0800 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2011-07-03 03:55:28 -0700 |
commit | 7c40a8035815479c7c12ab0cdcea71e0f4c3a9c8 (patch) | |
tree | 43290f7b96374f0ff8e80ad5e8620f3dc8242f1a /drivers/scsi/isci/events.h | |
parent | 150fc6fc725055b400a8865e6785dc8dd0a2225d (diff) | |
download | op-kernel-dev-7c40a8035815479c7c12ab0cdcea71e0f4c3a9c8.zip op-kernel-dev-7c40a8035815479c7c12ab0cdcea71e0f4c3a9c8.tar.gz |
isci: rework timer api
Prepare the timer api for the arrival of dynamic creation and
destruction events from the core. It pretended to do this previously
but the core to date only used it in a static init-time only fashion.
This is an interim fix until a cleaner event queue can be developed.
1/ make all locking external to the api (add WARN_ONCE to verify)
2/ add a timer_destroy interface (to be used by the core)
3/ use del_timer_sync() prior to deallocating timer data
4/ delete the "timer_list" indirection, we only have timers allocated
for the isci_host
5/ fix detection of timer list allocation errors
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/scsi/isci/events.h')
-rw-r--r-- | drivers/scsi/isci/events.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/scsi/isci/events.h b/drivers/scsi/isci/events.h index 98526e9..fa2f6aa 100644 --- a/drivers/scsi/isci/events.h +++ b/drivers/scsi/isci/events.h @@ -111,6 +111,9 @@ void isci_event_timer_stop( struct scic_sds_controller *controller, void *timer); + +void isci_event_timer_destroy(struct scic_sds_controller *scic, void *timer); + /** * isci_event_controller_start_complete() - This user callback will inform the * user that the controller has finished the start process. |