1. 21 Oct, 2021 3 commits
    • Luis Chamberlain's avatar
      dm: add add_disk() error handling · e7089f65
      Luis Chamberlain authored
      We never checked for errors on add_disk() as this function
      returned void. Now that this is fixed, use the shiny new
      error handling.
      
      There are two calls to dm_setup_md_queue() which can fail then,
      one on dm_early_create() and we can easily see that the error path
      there calls dm_destroy in the error path. The other use case is on
      the ioctl table_load case. If that fails userspace needs to call
      the DM_DEV_REMOVE_CMD to cleanup the state - similar to any other
      failure.
      Reviewed-by: default avatarHannes Reinecke <hare@suse.de>
      Signed-off-by: default avatarLuis Chamberlain <mcgrof@kernel.org>
      Link: https://lore.kernel.org/r/20211015233028.2167651-4-mcgrof@kernel.orgSigned-off-by: default avatarJens Axboe <axboe@kernel.dk>
      e7089f65
    • Ye Guojin's avatar
      block: aoe: fixup coccinelle warnings · ff06ed7e
      Ye Guojin authored
      coccicheck complains about the use of snprintf() in sysfs show
      functions:
      WARNING  use scnprintf or sprintf
      
      Use sysfs_emit instead of scnprintf or sprintf makes more sense.
      Reported-by: default avatarZeal Robot <zealci@zte.com.cn>
      Signed-off-by: default avatarYe Guojin <ye.guojin@zte.com.cn>
      Link: https://lore.kernel.org/r/20211021064931.1047687-1-ye.guojin@zte.com.cnSigned-off-by: default avatarJens Axboe <axboe@kernel.dk>
      ff06ed7e
    • Jens Axboe's avatar
      Merge tag 'nvme-5.16-2021-10-21' of git://git.infradead.org/nvme into for-5.16/drivers · cbab6ae0
      Jens Axboe authored
      Pull NVMe updates from Christoph:
      
      "nvme updates for Linux 5.16
      
       - fix a multipath partition scanning deadlock (Hannes Reinecke)
       - generate uevent once a multipath namespace is operational again
         (Hannes Reinecke)
       - support unique discovery controller NQNs (Hannes Reinecke)
       - fix use-after-free when a port is removed (Israel Rukshin)
       - clear shadow doorbell memory on resets (Keith Busch)
       - use struct_size (Len Baker)
       - add error handling support for add_disk (Luis Chamberlain)
       - limit the maximal queue size for RDMA controllers (Max Gurtovoy)
       - use a few more symbolic names (Max Gurtovoy)
       - fix error code in nvme_rdma_setup_ctrl (Max Gurtovoy)
       - add support for ->map_queues on FC (Saurav Kashyap)"
      
      * tag 'nvme-5.16-2021-10-21' of git://git.infradead.org/nvme: (23 commits)
        nvmet: use struct_size over open coded arithmetic
        nvme: drop scan_lock and always kick requeue list when removing namespaces
        nvme-pci: clear shadow doorbell memory on resets
        nvme-rdma: fix error code in nvme_rdma_setup_ctrl
        nvme-multipath: add error handling support for add_disk()
        nvmet: use macro definitions for setting cmic value
        nvmet: use macro definition for setting nmic value
        nvme: display correct subsystem NQN
        nvme: Add connect option 'discovery'
        nvme: expose subsystem type in sysfs attribute 'subsystype'
        nvmet: set 'CNTRLTYPE' in the identify controller data
        nvmet: add nvmet_is_disc_subsys() helper
        nvme: add CNTRLTYPE definitions for 'identify controller'
        nvmet: make discovery NQN configurable
        nvmet-rdma: implement get_max_queue_size controller op
        nvmet: add get_max_queue_size op for controllers
        nvme-rdma: limit the maximal queue size for RDMA controllers
        nvmet-tcp: fix use-after-free when a port is removed
        nvmet-rdma: fix use-after-free when a port is removed
        nvmet: fix use-after-free when a port is removed
        ...
      cbab6ae0
  2. 20 Oct, 2021 37 commits