mpt3sas: a small correction in _base_process_reply_queue
Subsystems (2)
PATCH 1/1 mpt3sas: a small correction in _base_process_reply_queue
There is no need to compute module a simple comparision is good enough.
Signed-off-by Tomas Henzl <[email protected]>
--- drivers/scsi/mpt3sas/mpt3sas_base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/mpt3sas/mpt3sas_base.c +1 -1
@@ -1627,7 +1627,7 @@ _base_process_reply_queue(struct adapter_reply_queue *reply_q)* So that FW can find enough entries to post the Reply * Descriptors in the reply descriptor post queue. */ -if (!base_mod64 (completed_cmds, ioc->thresh_hold)) { +if (completed_cmds >= ioc->thresh_hold) {if (ioc->combined_reply_queue) { writel(reply_q->reply_post_host_index | ((msix_index & 7) <<
Signature · 1 line
2.25.4
Quoted 5 lines · Tomas Henzl
There is no need to compute module a simple comparision is good enough.
Signed-off-by Tomas Henzl <[email protected]>
Acked-by sreekanth reddy <[email protected]>
Thanks,
Sreekanth
Quoted 20 lines
--- drivers/scsi/mpt3sas/mpt3sas_base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/scsi/mpt3sas/mpt3sas_base.c +1
-2@@ -1627,7 +1627,7 @@ _base_process_reply_queue(struct adapter_reply_queue *reply_q)* So that FW can find enough entries to post the Reply * Descriptors in the reply descriptor post queue. */ -if (!base_mod64 (completed_cmds, ioc->thresh_hold)) { +if (completed_cmds >= ioc->thresh_hold) {if (ioc->combined_reply_queue) { writel(reply_q->reply_post_host_index | ((msix_index & 7) << --2.25.4
Martin K. Petersen
AppliedTomas,
Quoted 2 lines
There is no need to compute module a simple comparision is good enough.
Applied to 5.10/scsi-staging, thanks!
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering
Martin K. Petersen
AppliedQuoted 2 lines · Tomas Henzl
There is no need to compute module a simple comparision is good enough.
Applied to 5.10/scsi-queue, thanks!
[1/1] scsi: mpt3sas: A small correction in _base_process_reply_queue
https://git.kernel.org/mkp/scsi/c/3d49f7426e6c
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering