Commit efdf518
committed
io-wq: perform both unstarted and started work cancelations in one go
Rather than split these into two separate lookups and matches, combine
them into one loop. This will become important when we can guarantee
that we don't have a window where a pending work item isn't discoverable
in either state.
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent 36e4c58 commit efdf518
1 file changed
Lines changed: 11 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1072 | 1072 | | |
1073 | 1073 | | |
1074 | 1074 | | |
1075 | | - | |
1076 | | - | |
1077 | | - | |
1078 | | - | |
1079 | | - | |
1080 | | - | |
1081 | | - | |
1082 | | - | |
1083 | | - | |
1084 | | - | |
1085 | | - | |
1086 | | - | |
1087 | | - | |
| 1075 | + | |
| 1076 | + | |
1088 | 1077 | | |
1089 | 1078 | | |
1090 | 1079 | | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
1091 | 1083 | | |
1092 | 1084 | | |
1093 | 1085 | | |
1094 | 1086 | | |
1095 | 1087 | | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
1096 | 1094 | | |
1097 | 1095 | | |
1098 | 1096 | | |
| |||
0 commit comments