]> asedeno.scripts.mit.edu Git - linux.git/commit
block/aoe: discover_timer: Convert timers to use timer_setup()
authorKees Cook <keescook@chromium.org>
Wed, 30 Aug 2017 21:53:24 +0000 (14:53 -0700)
committerKees Cook <keescook@chromium.org>
Mon, 6 Nov 2017 20:50:09 +0000 (12:50 -0800)
commit5ea22086ed42bef8dde93f45a42a3ace486eb788
tree3fb75d197d16d63878fdb4a478e9f6a555a95f80
parent10738ba8e02bc8cb1c4e832611621aa9666f4a24
block/aoe: discover_timer: Convert timers to use timer_setup()

In preparation for unconditionally passing the struct timer_list pointer to
all timer callbacks, switch to using the new timer_setup() and from_timer()
to pass the timer pointer explicitly.

This refactors the discover_timer to remove the needless locking and
state machine used for synchronizing timer death. Using del_timer_sync()
will already do the right thing.

Cc: Jens Axboe <axboe@kernel.dk>
Cc: "Ed L. Cashin" <ed.cashin@acm.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Kees Cook <keescook@chromium.org>
drivers/block/aoe/aoemain.c