1. 11 Jul, 2018 13 commits
  2. 02 Jul, 2018 25 commits
  3. 26 Jun, 2018 2 commits
    • Mike Christie's avatar
      scsi: tcmu: Don't pass KERN_ERR to pr_err · 0c218e16
      Mike Christie authored
      Fix warning:
      
      smatch warnings:
      drivers/target/target_core_user.c:301 tcmu_genl_cmd_done() warn: KERN_*
      level not at start of string
      Signed-off-by: default avatarMike Christie <mchristi@redhat.com>
      Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
      0c218e16
    • Ming Lei's avatar
      scsi: core: avoid host-wide host_busy counter for scsi_mq · 32872863
      Ming Lei authored
      It isn't necessary to check the host depth in scsi_queue_rq() any more
      since it has been respected by blk-mq before calling scsi_queue_rq() via
      getting driver tag.
      
      Lots of LUNs may attach to same host and per-host IOPS may reach millions,
      so we should avoid expensive atomic operations on the host-wide counter in
      the IO path.
      
      This patch implements scsi_host_busy() via blk_mq_tagset_busy_iter() for
      reading the count of busy IOs for scsi_mq.
      
      It is observed that IOPS is increased by 15% in IO test on scsi_debug (32
      LUNs, 32 submit queues, 1024 can_queue, libaio/dio) in a dual-socket
      system.
      
      [mkp: clarified commit message]
      
      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: Don Brace <don.brace@microsemi.com>
      Cc: Kashyap Desai <kashyap.desai@broadcom.com>
      Cc: Mike Snitzer <snitzer@redhat.com>
      Cc: Hannes Reinecke <hare@suse.de>
      Cc: Laurence Oberman <loberman@redhat.com>
      Cc: Bart Van Assche <bart.vanassche@wdc.com>
      Signed-off-by: default avatarMing Lei <ming.lei@redhat.com>
      Reviewed-by: default avatarBart Van Assche <bart.vanassche@wdc.com>
      Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
      32872863