Repository navigation
Commit 5ea2208
committed
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>1 parent 10738ba commit 5ea2208
1 file changed
Lines changed: 8 additions & 36 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | | - | |
21 | | - | |
| 20 | + | |
22 | 21 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
| 22 | + | |
50 | 23 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
| 24 | + | |
55 | 25 | | |
56 | 26 | | |
57 | 27 | | |
58 | 28 | | |
59 | 29 | | |
60 | | - | |
| 30 | + | |
61 | 31 | | |
62 | 32 | | |
63 | 33 | | |
| |||
93 | 63 | | |
94 | 64 | | |
95 | 65 | | |
96 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
97 | 69 | | |
98 | 70 | | |
99 | 71 | | |
| |||
0 commit comments