]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 29 Apr 2021 00:22:10 +0000 (17:22 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 29 Apr 2021 00:22:10 +0000 (17:22 -0700)
Pull SCSI updates from James Bottomley:
 "This consists of the usual driver updates (ufs, target, tcmu,
  smartpqi, lpfc, zfcp, qla2xxx, mpt3sas, pm80xx).

  The major core change is using a sbitmap instead of an atomic for
  queue tracking"

* tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi: (412 commits)
  scsi: target: tcm_fc: Fix a kernel-doc header
  scsi: target: Shorten ALUA error messages
  scsi: target: Fix two format specifiers
  scsi: target: Compare explicitly with SAM_STAT_GOOD
  scsi: sd: Introduce a new local variable in sd_check_events()
  scsi: dc395x: Open-code status_byte(u8) calls
  scsi: 53c700: Open-code status_byte(u8) calls
  scsi: smartpqi: Remove unused functions
  scsi: qla4xxx: Remove an unused function
  scsi: myrs: Remove unused functions
  scsi: myrb: Remove unused functions
  scsi: mpt3sas: Fix two kernel-doc headers
  scsi: fcoe: Suppress a compiler warning
  scsi: libfc: Fix a format specifier
  scsi: aacraid: Remove an unused function
  scsi: core: Introduce enum scsi_disposition
  scsi: core: Modify the scsi_send_eh_cmnd() return value for the SDEV_BLOCK case
  scsi: core: Rename scsi_softirq_done() into scsi_complete()
  scsi: core: Remove an incorrect comment
  scsi: core: Make the scsi_alloc_sgtables() documentation more accurate
  ...

19 files changed:
1  2 
block/blk-mq-sched.c
block/blk-mq.c
drivers/ata/libata-eh.c
drivers/s390/scsi/zfcp_qdio.c
drivers/scsi/BusLogic.c
drivers/scsi/advansys.c
drivers/scsi/ibmvscsi/ibmvfc.c
drivers/scsi/ibmvscsi/ibmvscsi.c
drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c
drivers/scsi/libsas/sas_ata.c
drivers/scsi/scsi_lib.c
drivers/scsi/scsi_scan.c
drivers/scsi/scsi_sysfs.c
drivers/scsi/sg.c
drivers/scsi/smartpqi/smartpqi_init.c
drivers/target/target_core_pscsi.c
include/linux/hyperv.h
include/scsi/scsi_cmnd.h
include/scsi/scsi_host.h

Simple merge
diff --cc block/blk-mq.c
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index c289991ffaed2f9ab4c20067191647db63aa3a27,d7c0d5a5f2636a583bce20e2ea978406640896d5..532304d42f00ecb92fd4af228941631739f7acf2
@@@ -1747,9 -1813,30 +1775,29 @@@ static void scsi_mq_exit_request(struc
  
        if (shost->hostt->exit_cmd_priv)
                shost->hostt->exit_cmd_priv(shost, cmd);
 -      scsi_free_sense_buffer(cmd->flags & SCMD_UNCHECKED_ISA_DMA,
 -                             cmd->sense_buffer);
 +      kmem_cache_free(scsi_sense_cache, cmd->sense_buffer);
  }
  
+ static int scsi_mq_poll(struct blk_mq_hw_ctx *hctx)
+ {
+       struct Scsi_Host *shost = hctx->driver_data;
+       if (shost->hostt->mq_poll)
+               return shost->hostt->mq_poll(shost, hctx->queue_num);
+       return 0;
+ }
+ static int scsi_init_hctx(struct blk_mq_hw_ctx *hctx, void *data,
+                         unsigned int hctx_idx)
+ {
+       struct Scsi_Host *shost = data;
+       hctx->driver_data = shost;
+       return 0;
+ }
  static int scsi_map_queues(struct blk_mq_tag_set *set)
  {
        struct Scsi_Host *shost = container_of(set, struct Scsi_Host, tag_set);
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index 8343c6f9fec19ed543b72fed0dfd2188b5394895,3f3ebfdedeb2ae28ce29b013bc74ff456797e660..d0bf88d77f02610df18d83a58c3a6dd58a4066fe
@@@ -611,7 -631,9 +626,8 @@@ struct Scsi_Host 
         * the total queue depth is can_queue.
         */
        unsigned nr_hw_queues;
+       unsigned nr_maps;
        unsigned active_mode:2;
 -      unsigned unchecked_isa_dma:1;
  
        /*
         * Host has requested that no further requests come through for the