Repository navigation
Commit 22a8578
mtd: mtd_blkdevs: Replace request handler kthread with a workqueue
By replacing a kthread with a workqueue, the code is now a bit clearer.
There's also a slight reduction of code size (numbers apply for x86):
Before:
text data bss dec hex filename
3248 36 0 3284 cd4 drivers/mtd/mtd_blkdevs.o
After:
text data bss dec hex filename
3150 36 0 3186 c72 drivers/mtd/mtd_blkdevs.o
Due to lack of real hardware, tests have been performed on an emulated
environment with mtdswap and mtdblock over nandsim devices.
Some real testing should be done, before merging this patch.
Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>1 parent 9329c5e commit 22a8578
2 files changed
Lines changed: 18 additions & 33 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | 35 | | |
37 | 36 | | |
38 | 37 | | |
| |||
121 | 120 | | |
122 | 121 | | |
123 | 122 | | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | 123 | | |
128 | 124 | | |
129 | 125 | | |
130 | 126 | | |
131 | | - | |
| 127 | + | |
132 | 128 | | |
133 | | - | |
| 129 | + | |
| 130 | + | |
134 | 131 | | |
135 | 132 | | |
136 | 133 | | |
137 | 134 | | |
138 | 135 | | |
139 | 136 | | |
140 | 137 | | |
141 | | - | |
| 138 | + | |
142 | 139 | | |
143 | 140 | | |
144 | 141 | | |
| |||
156 | 153 | | |
157 | 154 | | |
158 | 155 | | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
| 156 | + | |
168 | 157 | | |
169 | 158 | | |
170 | 159 | | |
| |||
185 | 174 | | |
186 | 175 | | |
187 | 176 | | |
188 | | - | |
189 | | - | |
190 | 177 | | |
191 | 178 | | |
192 | 179 | | |
| |||
199 | 186 | | |
200 | 187 | | |
201 | 188 | | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
| 189 | + | |
| 190 | + | |
206 | 191 | | |
207 | 192 | | |
208 | 193 | | |
| |||
437 | 422 | | |
438 | 423 | | |
439 | 424 | | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
446 | 429 | | |
447 | | - | |
| 430 | + | |
| 431 | + | |
448 | 432 | | |
449 | 433 | | |
450 | 434 | | |
| |||
484 | 468 | | |
485 | 469 | | |
486 | 470 | | |
487 | | - | |
488 | | - | |
489 | | - | |
| 471 | + | |
| 472 | + | |
490 | 473 | | |
491 | 474 | | |
492 | 475 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
46 | | - | |
| 47 | + | |
| 48 | + | |
47 | 49 | | |
48 | 50 | | |
49 | 51 | | |
| |||
0 commit comments