summaryrefslogtreecommitdiffstats
path: root/drivers/target/target_core_spc.c
diff options
context:
space:
mode:
authorBart Van Assche2017-05-24 01:48:50 +0200
committerKees Cook2017-11-01 19:44:49 +0100
commit8a47aa9dc636db851254615ea79ba91a52cf9206 (patch)
treec757f3585118dc416048c693dd7b8a9c7e7d0494 /drivers/target/target_core_spc.c
parentscsi: qla4xxx: Convert timers to use timer_setup() (diff)
downloadkernel-qcow2-linux-8a47aa9dc636db851254615ea79ba91a52cf9206.tar.gz
kernel-qcow2-linux-8a47aa9dc636db851254615ea79ba91a52cf9206.tar.xz
kernel-qcow2-linux-8a47aa9dc636db851254615ea79ba91a52cf9206.zip
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>
Diffstat (limited to 'drivers/target/target_core_spc.c')
0 files changed, 0 insertions, 0 deletions