All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH V3 0/2] scsi: avoid atomic operations in IO path
@ 2019-10-08 10:09 Ming Lei
  2019-10-08 10:09 ` [PATCH V3 1/2] scsi: core: avoid host-wide host_busy counter for scsi_mq Ming Lei
  2019-10-08 10:09 ` [RFC PATCH V3 2/2] scsi: core: don't limit per-LUN queue depth for SSD Ming Lei
  0 siblings, 2 replies; 22+ messages in thread
From: Ming Lei @ 2019-10-08 10:09 UTC (permalink / raw)
  To: linux-scsi, Martin K . Petersen
  Cc: James Bottomley, Ming Lei, Jens Axboe, Ewan D . Milne,
	Omar Sandoval, James Bottomley, Christoph Hellwig, Kashyap Desai,
	Hannes Reinecke, Laurence Oberman, Bart Van Assche

Hi,

The 1st patch kills the atomic host-wide counter of host_busy.

The 2nd patch bypass the atomic LUN-wide connter of device_busy
for fast SSD device.

V3:
	- use non-atomic set/clear bit operations as suggested by Bart
	- kill single field struct for storing count of in-flight requests
	- add patch to bypass the atomic LUN-wide counter of device_busy
	for fast SSD device

V2:
	- introduce SCMD_STATE_INFLIGHT for getting accurate host busy
	via blk_mq_tagset_busy_iter()
	- verified that original Jens's report[1] is fixed
	- verified that SCSI timeout/abort works fine


Ming Lei (2):
  scsi: core: avoid host-wide host_busy counter for scsi_mq
  scsi: core: don't limit per-LUN queue depth for SSD

 drivers/scsi/hosts.c     | 19 +++++++++++++-
 drivers/scsi/scsi.c      |  2 +-
 drivers/scsi/scsi_lib.c  | 57 +++++++++++++++++++++++-----------------
 drivers/scsi/scsi_priv.h |  2 +-
 include/scsi/scsi_cmnd.h |  1 +
 include/scsi/scsi_host.h |  1 -
 6 files changed, 54 insertions(+), 28 deletions(-)

Cc: Jens Axboe <axboe@kernel.dk>
Cc: Ewan D. Milne <emilne@redhat.com>
Cc: Omar Sandoval <osandov@fb.com>,
Cc: "Martin K. Petersen" <martin.petersen@oracle.com>,
Cc: James Bottomley <james.bottomley@hansenpartnership.com>,
Cc: Christoph Hellwig <hch@lst.de>,
Cc: Kashyap Desai <kashyap.desai@broadcom.com>
Cc: Hannes Reinecke <hare@suse.de>
Cc: Laurence Oberman <loberman@redhat.com>
Cc: Bart Van Assche <bart.vanassche@wdc.com>

-- 
2.20.1


^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2019-11-21  7:36 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-08 10:09 [PATCH V3 0/2] scsi: avoid atomic operations in IO path Ming Lei
2019-10-08 10:09 ` [PATCH V3 1/2] scsi: core: avoid host-wide host_busy counter for scsi_mq Ming Lei
2019-10-08 10:09 ` [RFC PATCH V3 2/2] scsi: core: don't limit per-LUN queue depth for SSD Ming Lei
2019-10-08 19:33   ` kbuild test robot
2019-10-09  8:29   ` Dan Carpenter
2019-10-09  8:29     ` Dan Carpenter
2019-11-04  8:50   ` [scsi] 74eb6c22dc: suspend_stress.fail kernel test robot
2019-11-04  8:50     ` kernel test robot
2019-11-05  3:52     ` Bart Van Assche
2019-11-05  3:52       ` Bart Van Assche
2019-11-05  6:11       ` Ming Lei
2019-11-05  6:11         ` Ming Lei
2019-11-13 17:00         ` Bart Van Assche
2019-11-13 17:00           ` Bart Van Assche
2019-11-14  1:25           ` Ming Lei
2019-11-14  1:25             ` Ming Lei
2019-11-16  8:54     ` Ming Lei
2019-11-16  8:54       ` Ming Lei
2019-11-21  6:50       ` Oliver Sang
2019-11-21  6:50         ` Oliver Sang
2019-11-21  7:36         ` Ming Lei
2019-11-21  7:36           ` Ming Lei

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.