From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx3-rdu2.redhat.com ([66.187.233.73]:39274 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751876AbeFXOEC (ORCPT ); Sun, 24 Jun 2018 10:04:02 -0400 From: Ming Lei To: linux-scsi@vger.kernel.org Cc: Jens Axboe , linux-block@vger.kernel.org, Ming Lei , Omar Sandoval , "Martin K. Petersen" , James Bottomley , Christoph Hellwig , Don Brace , Kashyap Desai , Mike Snitzer , Hannes Reinecke , Laurence Oberman , Bart Van Assche Subject: [PATCH V2 0/2] scsi: scsi-mq: don't hold host_busy in IO path Date: Sun, 24 Jun 2018 22:03:25 +0800 Message-Id: <20180624140327.28146-1-ming.lei@redhat.com> Sender: linux-block-owner@vger.kernel.org List-Id: linux-block@vger.kernel.org Hi, This patches removes the expensive atomic opeation on host-wide counter of .host_busy for scsi-mq, and it is observed that IOPS can be increased by 15% with this change in IO test over scsi_debug. V2: - merge patch 1&2 into one patch - run more tests(blktests, xfstests, ...), and not see regression Ming Lei (2): scsi: read host_busy via scsi_host_busy() scsi: avoid to hold host-wide counter of host_busy for scsi_mq drivers/scsi/advansys.c | 8 ++++---- drivers/scsi/hosts.c | 32 +++++++++++++++++++++++++++++++ drivers/scsi/libsas/sas_scsi_host.c | 4 ++-- drivers/scsi/megaraid/megaraid_sas_base.c | 2 +- drivers/scsi/mpt3sas/mpt3sas_base.c | 4 ++-- drivers/scsi/qlogicpti.c | 2 +- drivers/scsi/scsi.c | 2 +- drivers/scsi/scsi_error.c | 6 +++--- drivers/scsi/scsi_lib.c | 23 ++++++++++++++++------ drivers/scsi/scsi_sysfs.c | 2 +- include/scsi/scsi_host.h | 1 + 11 files changed, 65 insertions(+), 21 deletions(-) Cc: Omar Sandoval , Cc: "Martin K. Petersen" , Cc: James Bottomley , Cc: Christoph Hellwig , Cc: Don Brace Cc: Kashyap Desai Cc: Mike Snitzer Cc: Hannes Reinecke Cc: Laurence Oberman Cc: Bart Van Assche -- 2.9.5