]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: hisi_sas: service v2 hw CQ ISR with tasklet
authorJohn Garry <john.garry@huawei.com>
Tue, 3 Jan 2017 12:24:48 +0000 (20:24 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 5 Jan 2017 23:24:11 +0000 (18:24 -0500)
commit066fb3591f5613a7c3c556e2bfe007e6b4a48fb0
tree82a3ab3a35cde4275e2c2f251969c9e0553331f8
parentd56c79a8f99921e6bb14e1d1beec3ed5653f8c77
scsi: hisi_sas: service v2 hw CQ ISR with tasklet

Currently the all the slot processing for the completion queue is done
in ISR context. It is judged that the slot processing can take a long
time, especially when a SATA NCQ completes (upto 32 slots).

So, as a solution, defer the bulk of the ISR processing to tasklet
context. Each CQ will have its down tasklet.

Signed-off-by: John Garry <john.garry@huawei.com>
Reviewed-by: Xiang Chen <chenxiang66@hisilicon.com>
Reviewed-by: Zhangfei Gao <zhangfei.gao@linaro.org>
Tested-by: Hanjun Guo <hanjun.guo@linaro.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hisi_sas/hisi_sas.h
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c