mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-27 04:54:41 +08:00
8a47aa9dc6
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>
38 lines
1.7 KiB
C
38 lines
1.7 KiB
C
#ifndef ISCSI_TARGET_ERL1_H
|
|
#define ISCSI_TARGET_ERL1_H
|
|
|
|
#include <linux/types.h>
|
|
#include <scsi/iscsi_proto.h> /* itt_t */
|
|
|
|
struct iscsi_cmd;
|
|
struct iscsi_conn;
|
|
struct iscsi_datain_req;
|
|
struct iscsi_ooo_cmdsn;
|
|
struct iscsi_pdu;
|
|
struct iscsi_session;
|
|
|
|
extern int iscsit_dump_data_payload(struct iscsi_conn *, u32, int);
|
|
extern int iscsit_create_recovery_datain_values_datasequenceinorder_yes(
|
|
struct iscsi_cmd *, struct iscsi_datain_req *);
|
|
extern int iscsit_create_recovery_datain_values_datasequenceinorder_no(
|
|
struct iscsi_cmd *, struct iscsi_datain_req *);
|
|
extern int iscsit_handle_recovery_datain_or_r2t(struct iscsi_conn *, unsigned char *,
|
|
itt_t, u32, u32, u32);
|
|
extern int iscsit_handle_status_snack(struct iscsi_conn *, itt_t, u32,
|
|
u32, u32);
|
|
extern int iscsit_handle_data_ack(struct iscsi_conn *, u32, u32, u32);
|
|
extern int iscsit_dataout_datapduinorder_no_fbit(struct iscsi_cmd *, struct iscsi_pdu *);
|
|
extern int iscsit_recover_dataout_sequence(struct iscsi_cmd *, u32, u32);
|
|
extern void iscsit_clear_ooo_cmdsns_for_conn(struct iscsi_conn *);
|
|
extern void iscsit_free_all_ooo_cmdsns(struct iscsi_session *);
|
|
extern int iscsit_execute_ooo_cmdsns(struct iscsi_session *);
|
|
extern int iscsit_execute_cmd(struct iscsi_cmd *, int);
|
|
extern int iscsit_handle_ooo_cmdsn(struct iscsi_session *, struct iscsi_cmd *, u32);
|
|
extern void iscsit_remove_ooo_cmdsn(struct iscsi_session *, struct iscsi_ooo_cmdsn *);
|
|
extern void iscsit_handle_dataout_timeout(unsigned long data);
|
|
extern void iscsit_mod_dataout_timer(struct iscsi_cmd *);
|
|
extern void iscsit_start_dataout_timer(struct iscsi_cmd *, struct iscsi_conn *);
|
|
extern void iscsit_stop_dataout_timer(struct iscsi_cmd *);
|
|
|
|
#endif /* ISCSI_TARGET_ERL1_H */
|