Commit 306f13e
blk-mq: simplify reallocation of hw ctxs a bit
blk_mq_alloc_and_init_hctx() has already taken reuse into account, so
no need to do it outside, then we can simplify blk_mq_realloc_hw_ctxs().
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20220308073219.91173-3-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent 4d80513 commit 306f13e
1 file changed
+14
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3966 | 3966 | | |
3967 | 3967 | | |
3968 | 3968 | | |
| 3969 | + | |
3969 | 3970 | | |
3970 | | - | |
| 3971 | + | |
3971 | 3972 | | |
3972 | | - | |
3973 | | - | |
3974 | | - | |
3975 | | - | |
3976 | | - | |
3977 | | - | |
3978 | | - | |
| 3973 | + | |
| 3974 | + | |
| 3975 | + | |
| 3976 | + | |
3979 | 3977 | | |
3980 | | - | |
3981 | | - | |
3982 | | - | |
3983 | | - | |
3984 | | - | |
3985 | | - | |
3986 | | - | |
3987 | | - | |
3988 | | - | |
3989 | | - | |
3990 | | - | |
| 3978 | + | |
| 3979 | + | |
| 3980 | + | |
3991 | 3981 | | |
| 3982 | + | |
| 3983 | + | |
| 3984 | + | |
| 3985 | + | |
| 3986 | + | |
3992 | 3987 | | |
3993 | 3988 | | |
3994 | 3989 | | |
| |||
0 commit comments