Repository navigation
Commit b3143b9
md: move suspend_hi/lo handling into core md code
responding to ->suspend_lo and ->suspend_hi is similar
to responding to ->suspended. It is best to wait in
the common core code without incrementing ->active_io.
This allows mddev_suspend()/mddev_resume() to work while
requests are waiting for suspend_lo/hi to change.
This is will be important after a subsequent patch
which uses mddev_suspend() to synchronize updating for
suspend_lo/hi.
So move the code for testing suspend_lo/hi out of raid1.c
and raid5.c, and place it in md.c
Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Shaohua Li <shli@fb.com>1 parent 52a0d49 commit b3143b9
3 files changed
Lines changed: 28 additions & 37 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
269 | 284 | | |
270 | 285 | | |
271 | 286 | | |
272 | 287 | | |
273 | | - | |
| 288 | + | |
274 | 289 | | |
275 | 290 | | |
276 | 291 | | |
277 | 292 | | |
278 | | - | |
| 293 | + | |
279 | 294 | | |
280 | 295 | | |
281 | 296 | | |
| |||
4845 | 4860 | | |
4846 | 4861 | | |
4847 | 4862 | | |
4848 | | - | |
| 4863 | + | |
4849 | 4864 | | |
| 4865 | + | |
4850 | 4866 | | |
4851 | | - | |
| 4867 | + | |
4852 | 4868 | | |
4853 | 4869 | | |
4854 | 4870 | | |
| |||
4888 | 4904 | | |
4889 | 4905 | | |
4890 | 4906 | | |
4891 | | - | |
| 4907 | + | |
4892 | 4908 | | |
| 4909 | + | |
4893 | 4910 | | |
4894 | | - | |
| 4911 | + | |
4895 | 4912 | | |
4896 | 4913 | | |
4897 | 4914 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1310 | 1310 | | |
1311 | 1311 | | |
1312 | 1312 | | |
1313 | | - | |
1314 | | - | |
1315 | | - | |
| 1313 | + | |
1316 | 1314 | | |
1317 | | - | |
| 1315 | + | |
1318 | 1316 | | |
1319 | 1317 | | |
1320 | 1318 | | |
| |||
1325 | 1323 | | |
1326 | 1324 | | |
1327 | 1325 | | |
1328 | | - | |
1329 | | - | |
1330 | | - | |
1331 | | - | |
| 1326 | + | |
| 1327 | + | |
1332 | 1328 | | |
1333 | | - | |
| 1329 | + | |
1334 | 1330 | | |
1335 | 1331 | | |
1336 | 1332 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5685 | 5685 | | |
5686 | 5686 | | |
5687 | 5687 | | |
5688 | | - | |
5689 | | - | |
5690 | | - | |
5691 | | - | |
5692 | | - | |
5693 | | - | |
5694 | | - | |
5695 | | - | |
5696 | | - | |
5697 | | - | |
5698 | | - | |
5699 | | - | |
5700 | | - | |
5701 | | - | |
5702 | | - | |
5703 | | - | |
5704 | | - | |
5705 | | - | |
5706 | | - | |
5707 | | - | |
5708 | | - | |
5709 | | - | |
5710 | 5688 | | |
5711 | 5689 | | |
5712 | 5690 | | |
| |||
0 commit comments