Commit b7e255b
ublk: don't pass q_id to ublk_queue_cmd_buf_size()
ublk_queue_cmd_buf_size() only needs the queue depth, which is the same
for all queues. Get the queue depth from the ublk_device instead so the
q_id parameter can be dropped.
Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent 163f80d commit b7e255b
1 file changed
Lines changed: 5 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
762 | 762 | | |
763 | 763 | | |
764 | 764 | | |
765 | | - | |
| 765 | + | |
766 | 766 | | |
767 | | - | |
768 | | - | |
769 | | - | |
| 767 | + | |
770 | 768 | | |
771 | 769 | | |
772 | 770 | | |
| |||
1703 | 1701 | | |
1704 | 1702 | | |
1705 | 1703 | | |
1706 | | - | |
| 1704 | + | |
1707 | 1705 | | |
1708 | 1706 | | |
1709 | 1707 | | |
| |||
2565 | 2563 | | |
2566 | 2564 | | |
2567 | 2565 | | |
2568 | | - | |
| 2566 | + | |
2569 | 2567 | | |
2570 | 2568 | | |
2571 | 2569 | | |
| |||
2592 | 2590 | | |
2593 | 2591 | | |
2594 | 2592 | | |
2595 | | - | |
| 2593 | + | |
2596 | 2594 | | |
2597 | 2595 | | |
2598 | 2596 | | |
| |||
0 commit comments