mirror of
https://github.com/torvalds/linux.git
synced 2026-04-27 11:02:31 -04:00
target/iscsi: Simplify timer manipulation code
Move timer initialization from before add_timer() to the context where the containing object is initialized. Use setup_timer() and mod_timer() instead of open coding these. Use 'jiffies' instead of get_jiffies_64() when calculating expiry times because expiry times have type unsigned long, just like 'jiffies'. Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> Reviewed-by: Hannes Reinecke <hare@suse.com> Cc: Christoph Hellwig <hch@lst.de> Cc: Andy Grover <agrover@redhat.com> Cc: David Disseldorp <ddiss@suse.de> Signed-off-by: Kees Cook <keescook@chromium.org>
This commit is contained in:
committed by
Kees Cook
parent
d744644ad7
commit
8a47aa9dc6
@@ -47,9 +47,11 @@ extern struct iscsi_conn *iscsit_get_conn_from_cid_rcfr(struct iscsi_session *,
|
||||
extern void iscsit_check_conn_usage_count(struct iscsi_conn *);
|
||||
extern void iscsit_dec_conn_usage_count(struct iscsi_conn *);
|
||||
extern void iscsit_inc_conn_usage_count(struct iscsi_conn *);
|
||||
extern void iscsit_handle_nopin_response_timeout(unsigned long data);
|
||||
extern void iscsit_mod_nopin_response_timer(struct iscsi_conn *);
|
||||
extern void iscsit_start_nopin_response_timer(struct iscsi_conn *);
|
||||
extern void iscsit_stop_nopin_response_timer(struct iscsi_conn *);
|
||||
extern void iscsit_handle_nopin_timeout(unsigned long data);
|
||||
extern void __iscsit_start_nopin_timer(struct iscsi_conn *);
|
||||
extern void iscsit_start_nopin_timer(struct iscsi_conn *);
|
||||
extern void iscsit_stop_nopin_timer(struct iscsi_conn *);
|
||||
|
||||
Reference in New Issue
Block a user