Commit e61e002
block, bfq: remove local variable 'split' in bfq_init_rq()
The local variable is used to call bfq_bfqq_resume_state() later,
since 'bfqd->lock' is held, and bfqq status will not change between
setting 'split' and calling bfq_bfqq_resume_state(), move forward
bfq_bfqq_resume_state() so that 'split' can be removed. There are no
functional chagnes.
Signed-off-by: Yu Kuai <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>1 parent 553a606 commit e61e002
1 file changed
+8
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6877 | 6877 | | |
6878 | 6878 | | |
6879 | 6879 | | |
6880 | | - | |
| 6880 | + | |
6881 | 6881 | | |
6882 | 6882 | | |
6883 | 6883 | | |
| |||
6914 | 6914 | | |
6915 | 6915 | | |
6916 | 6916 | | |
6917 | | - | |
6918 | | - | |
6919 | 6917 | | |
6920 | 6918 | | |
6921 | 6919 | | |
6922 | 6920 | | |
6923 | 6921 | | |
6924 | 6922 | | |
6925 | | - | |
| 6923 | + | |
| 6924 | + | |
| 6925 | + | |
| 6926 | + | |
6926 | 6927 | | |
| 6928 | + | |
| 6929 | + | |
6927 | 6930 | | |
6928 | 6931 | | |
6929 | 6932 | | |
| |||
6959 | 6962 | | |
6960 | 6963 | | |
6961 | 6964 | | |
6962 | | - | |
| 6965 | + | |
6963 | 6966 | | |
6964 | | - | |
6965 | | - | |
6966 | | - | |
6967 | | - | |
6968 | | - | |
6969 | | - | |
6970 | | - | |
6971 | | - | |
6972 | | - | |
6973 | | - | |
6974 | 6967 | | |
6975 | 6968 | | |
6976 | 6969 | | |
| |||
0 commit comments