diff options
author | Minwoo Im <minwoo.im@samsung.com> | 2024-06-01 00:22:44 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2024-06-05 05:14:21 +0300 |
commit | a420a8ed0a92488a04b34dfc262101c87940c800 (patch) | |
tree | 65e5d4c93c8196b3292231664ef454724a61edaf /rust/helpers/task.c | |
parent | 175d1825ca4d2288fee734ada0955a1e36dd50e6 (diff) | |
download | linux-a420a8ed0a92488a04b34dfc262101c87940c800.tar.xz |
scsi: ufs: mcq: Prevent no I/O queue case for MCQ
If hba_maxq equals poll_queues, which means there are no I/O queues
(HCTX_TYPE_DEFAULT, HCTX_TYPE_READ), the very first hw queue will be
allocated as HCTX_TYPE_POLL and it will be used as the dev_cmd_queue. In
this case, device commands such as QUERY cannot be properly handled.
This patch prevents the initialization of MCQ when the number of I/O queues
is not set and only the number of POLL queues is set.
Signed-off-by: Minwoo Im <minwoo.im@samsung.com>
Link: https://lore.kernel.org/r/20240531212244.1593535-3-minwoo.im@samsung.com
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'rust/helpers/task.c')
0 files changed, 0 insertions, 0 deletions