Commit 94970cf
scsi: use block layer helpers to calculate num of queues
The calculation of the upper limit for queues does not depend solely on
the number of online CPUs; for example, the isolcpus kernel
command-line option must also be considered.
To account for this, the block layer provides a helper function to
retrieve the maximum number of queues. Use it to set an appropriate
upper queue number limit.
Reviewed-by: Martin K. Petersen <[email protected]>
Reviewed-by: Hannes Reinecke <[email protected]>
Reviewed-by: Ming Lei <[email protected]>
Signed-off-by: Daniel Wagner <[email protected]>
Reviewed-by: Chaitanya Kulkarni <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>1 parent 4082c98 commit 94970cf
3 files changed
Lines changed: 16 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5971 | 5971 | | |
5972 | 5972 | | |
5973 | 5973 | | |
5974 | | - | |
| 5974 | + | |
| 5975 | + | |
5975 | 5976 | | |
5976 | 5977 | | |
5977 | 5978 | | |
| |||
5987 | 5988 | | |
5988 | 5989 | | |
5989 | 5990 | | |
5990 | | - | |
| 5991 | + | |
| 5992 | + | |
5991 | 5993 | | |
5992 | 5994 | | |
5993 | 5995 | | |
| |||
6243 | 6245 | | |
6244 | 6246 | | |
6245 | 6247 | | |
6246 | | - | |
| 6248 | + | |
6247 | 6249 | | |
6248 | 6250 | | |
6249 | 6251 | | |
| |||
6287 | 6289 | | |
6288 | 6290 | | |
6289 | 6291 | | |
6290 | | - | |
| 6292 | + | |
| 6293 | + | |
6291 | 6294 | | |
6292 | 6295 | | |
6293 | 6296 | | |
| |||
6319 | 6322 | | |
6320 | 6323 | | |
6321 | 6324 | | |
6322 | | - | |
6323 | | - | |
| 6325 | + | |
| 6326 | + | |
6324 | 6327 | | |
6325 | 6328 | | |
6326 | 6329 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4533 | 4533 | | |
4534 | 4534 | | |
4535 | 4535 | | |
4536 | | - | |
4537 | | - | |
| 4536 | + | |
| 4537 | + | |
4538 | 4538 | | |
4539 | 4539 | | |
4540 | | - | |
4541 | | - | |
4542 | | - | |
| 4540 | + | |
| 4541 | + | |
| 4542 | + | |
4543 | 4543 | | |
4544 | 4544 | | |
4545 | 4545 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5294 | 5294 | | |
5295 | 5295 | | |
5296 | 5296 | | |
5297 | | - | |
5298 | 5297 | | |
5299 | 5298 | | |
5300 | 5299 | | |
5301 | 5300 | | |
5302 | 5301 | | |
5303 | 5302 | | |
5304 | | - | |
5305 | | - | |
| 5303 | + | |
| 5304 | + | |
5306 | 5305 | | |
5307 | 5306 | | |
5308 | 5307 | | |
| |||
0 commit comments