在 2022/1/14 1:12, John Garry 写道:
On 12/01/2022 03:28, chenxiang wrote:
"... member scsi_host_template.cmd_pool"
is more concise
ok
From: Xiang Chen chenxiang66@hisilicon.com
The member cmd_pool in structure scsi_host_template is not used, so remove it.
As before, it's useful to mention when it was last used, if ever.
I tried to find when it was last used, but not find. The struct scsi_host_cmd_pool is brought by the commit 89d9a567952b ("[SCSI] add support for per-host cmd pools"), and also add some API of scsi_host_cmd_pool (such as function scsi_{alloc, free, get, put, find}_host_cmd_pool()), but don't find where they are removed.
Thanks, John
Signed-off-by: Xiang Chen chenxiang66@hisilicon.com
include/scsi/scsi_host.h | 3 --- 1 file changed, 3 deletions(-)
diff --git a/include/scsi/scsi_host.h b/include/scsi/scsi_host.h index ebe059badba0..21eae43701c0 100644 --- a/include/scsi/scsi_host.h +++ b/include/scsi/scsi_host.h @@ -16,7 +16,6 @@ struct completion; struct module; struct scsi_cmnd; struct scsi_device; -struct scsi_host_cmd_pool; struct scsi_target; struct Scsi_Host; struct scsi_transport_template; @@ -493,8 +492,6 @@ struct scsi_host_template { */ u64 vendor_id;
- struct scsi_host_cmd_pool *cmd_pool;
};/* Delay for runtime autosuspend */ int rpm_autosuspend_delay;
.