Repository navigation
Commit dc501dc
blk-mq: pass along blk_mq_alloc_tag_set return values
Two of the blk-mq based drivers do not pass back the return value
from blk_mq_alloc_tag_set, instead just returning -ENOMEM.
blk_mq_alloc_tag_set returns -EINVAL if the number of queues or
queue depth is bad. -ENOMEM implies that retrying after freeing some
memory might be more successful, but that won't ever change
in the -EINVAL cases.
Change the null_blk and mtip32xx drivers to pass along
the return value.
Signed-off-by: Robert Elliott <elliott@hp.com>
Signed-off-by: Jens Axboe <axboe@fb.com>1 parent 0738854 commit dc501dc
2 files changed
Lines changed: 21 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3918 | 3918 | | |
3919 | 3919 | | |
3920 | 3920 | | |
3921 | | - | |
3922 | 3921 | | |
3923 | 3922 | | |
3924 | 3923 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
462 | 462 | | |
463 | 463 | | |
464 | 464 | | |
| 465 | + | |
465 | 466 | | |
466 | 467 | | |
467 | | - | |
| 468 | + | |
| 469 | + | |
468 | 470 | | |
| 471 | + | |
469 | 472 | | |
470 | 473 | | |
471 | 474 | | |
472 | 475 | | |
473 | 476 | | |
474 | 477 | | |
475 | | - | |
| 478 | + | |
| 479 | + | |
476 | 480 | | |
477 | 481 | | |
478 | 482 | | |
| |||
484 | 488 | | |
485 | 489 | | |
486 | 490 | | |
487 | | - | |
| 491 | + | |
| 492 | + | |
488 | 493 | | |
489 | 494 | | |
490 | 495 | | |
491 | | - | |
| 496 | + | |
| 497 | + | |
492 | 498 | | |
| 499 | + | |
493 | 500 | | |
494 | 501 | | |
495 | | - | |
| 502 | + | |
| 503 | + | |
496 | 504 | | |
| 505 | + | |
497 | 506 | | |
498 | 507 | | |
499 | 508 | | |
500 | 509 | | |
501 | | - | |
| 510 | + | |
| 511 | + | |
502 | 512 | | |
| 513 | + | |
503 | 514 | | |
504 | 515 | | |
505 | 516 | | |
| |||
509 | 520 | | |
510 | 521 | | |
511 | 522 | | |
512 | | - | |
| 523 | + | |
| 524 | + | |
513 | 525 | | |
| 526 | + | |
514 | 527 | | |
515 | 528 | | |
516 | 529 | | |
| |||
544 | 557 | | |
545 | 558 | | |
546 | 559 | | |
547 | | - | |
| 560 | + | |
548 | 561 | | |
549 | 562 | | |
550 | 563 | | |
| |||
0 commit comments