]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
Merge branch 'for-5.9/drivers' into for-5.9/block-merge
authorJens Axboe <axboe@kernel.dk>
Mon, 20 Jul 2020 21:38:27 +0000 (15:38 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 20 Jul 2020 21:38:27 +0000 (15:38 -0600)
* for-5.9/drivers: (38 commits)
  block: add max_active_zones to blk-sysfs
  block: add max_open_zones to blk-sysfs
  s390/dasd: Use struct_size() helper
  s390/dasd: fix inability to use DASD with DIAG driver
  md-cluster: fix wild pointer of unlock_all_bitmaps()
  md/raid5-cache: clear MD_SB_CHANGE_PENDING before flushing stripes
  md: fix deadlock causing by sysfs_notify
  md: improve io stats accounting
  md: raid0/linear: fix dereference before null check on pointer mddev
  rsxx: switch from 'pci_free_consistent()' to 'dma_free_coherent()'
  nvme: remove ns->disk checks
  nvme-pci: use standard block status symbolic names
  nvme-pci: use the consistent return type of nvme_pci_iod_alloc_size()
  nvme-pci: add a blank line after declarations
  nvme-pci: fix some comments issues
  nvme-pci: remove redundant segment validation
  nvme: document quirked Intel models
  nvme: expose reconnect_delay and ctrl_loss_tmo via sysfs
  nvme: support for zoned namespaces
  nvme: support for multiple Command Sets Supported and Effects log pages
  ...

1  2 
drivers/md/md.c
drivers/md/md.h
drivers/md/raid10.c
drivers/md/raid5.c
drivers/nvme/host/core.c
drivers/nvme/host/nvme.h
include/linux/blkdev.h

diff --cc drivers/md/md.c
Simple merge
diff --cc drivers/md/md.h
Simple merge
Simple merge
Simple merge
Simple merge
index 26099eaf1b1c34106d814189abbe4f6d78765c4c,13ca90bcd3524459f6944e92db5e8e6e34a697b9..e536dd9190731018657a2e00ab206182d1fcbac5
@@@ -692,11 -700,38 +710,41 @@@ static inline void nvme_mpath_wait_free
  static inline void nvme_mpath_start_freeze(struct nvme_subsystem *subsys)
  {
  }
 +static inline void nvme_mpath_update_disk_size(struct gendisk *disk)
 +{
 +}
  #endif /* CONFIG_NVME_MULTIPATH */
  
+ #ifdef CONFIG_BLK_DEV_ZONED
+ int nvme_update_zone_info(struct gendisk *disk, struct nvme_ns *ns,
+                         unsigned lbaf);
+ int nvme_report_zones(struct gendisk *disk, sector_t sector,
+                     unsigned int nr_zones, report_zones_cb cb, void *data);
+ blk_status_t nvme_setup_zone_mgmt_send(struct nvme_ns *ns, struct request *req,
+                                      struct nvme_command *cmnd,
+                                      enum nvme_zone_mgmt_action action);
+ #else
+ #define nvme_report_zones NULL
+ static inline blk_status_t nvme_setup_zone_mgmt_send(struct nvme_ns *ns,
+               struct request *req, struct nvme_command *cmnd,
+               enum nvme_zone_mgmt_action action)
+ {
+       return BLK_STS_NOTSUPP;
+ }
+ static inline int nvme_update_zone_info(struct gendisk *disk,
+                                       struct nvme_ns *ns,
+                                       unsigned lbaf)
+ {
+       dev_warn(ns->ctrl->device,
+                "Please enable CONFIG_BLK_DEV_ZONED to support ZNS devices\n");
+       return -EPROTONOSUPPORT;
+ }
+ #endif
  #ifdef CONFIG_NVM
  int nvme_nvm_register(struct nvme_ns *ns, char *disk_name, int node);
  void nvme_nvm_unregister(struct nvme_ns *ns);
Simple merge