1. May 30, 2018
    • Keith Busch's avatar
      nvme-pci: Rate limit the nvme timeout warnings · b9cac43c
      Keith Busch authored
      
      
      The block layer's timeout handling currently prevents drivers from
      completing commands outside the timeout callback once blk-mq decides
      they've expired. If a device breaks, this could potentially create many
      thousands of timed out commands. There's nothing of value to be gleaned
      from observing each of those messages, so this patch adds a rate limit
      on them.
      
      Signed-off-by: default avatarKeith Busch <keith.busch@intel.com>
      Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
      b9cac43c
    • James Smart's avatar
      nvme: allow duplicate controller if prior controller being deleted · ab4f47a9
      James Smart authored
      
      
      The current checks for whether a new controller request "matches" an
      existing controller ignores controller state and checks identity strings.
      There are cases where an existing controller may be in its last steps of
      deletion when they are "matched" by a new connection.
      
      Change the behavior so that the new connection ignores controllers that
      are deleted.
      
      Signed-off-by: default avatarJames Smart <james.smart@broadcom.com>
      Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
      ab4f47a9
    • Christoph Hellwig's avatar
      block: remove parent device reference from struct bsg_class_device · 5de815a7
      Christoph Hellwig authored
      
      
      Bsg holding a reference to the parent device may result in a crash if a
      bsg file handle is closed after the parent device driver has unloaded.
      
      Holding a reference is not really needed: the parent device must exist
      between bsg_register_queue and bsg_unregister_queue.  Before the device
      goes away the caller does blk_cleanup_queue so that all in-flight
      requests to the device are gone and all new requests cannot pass beyond
      the queue.  The queue itself is a refcounted object and it will stay
      alive with a bsg file.
      
      Based on analysis, previous patch and changelog from Anatoliy Glagolev.
      
      Reported-by: default avatarAnatoliy Glagolev <glagolig@gmail.com>
      Reviewed-by: default avatarJames E.J. Bottomley <jejb@linux.vnet.ibm.com>
      Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      5de815a7
    • Jens Axboe's avatar
      Merge branch 'nvme-4.18-2' of git://git.infradead.org/nvme into for-4.18/block · b7405176
      Jens Axboe authored
      Pull NVMe changes from Christoph:
      
      "Here is the current batch of nvme updates for 4.18, we have a few more
       patches in the queue, but I'd like to get this pile into your tree
       and linux-next ASAP.
      
       The biggest item is support for file-backed namespaces in the NVMe
       target from Chaitanya, in addition to that we mostly small fixes from
       all the usual suspects."
      
      * 'nvme-4.18-2' of git://git.infradead.org/nvme:
        nvme: fixup memory leak in nvme_init_identify()
        nvme: fix KASAN warning when parsing host nqn
        nvmet-loop: use nr_phys_segments when map rq to sgl
        nvmet-fc: increase LS buffer count per fc port
        nvmet: add simple file backed ns support
        nvmet: remove duplicate NULL initialization for req->ns
        nvmet: make a few error messages more generic
        nvme-fabrics: allow duplicate connections to the discovery controller
        nvme-fabrics: centralize discovery controller defaults
        nvme-fabrics: remove unnecessary controller subnqn validation
        nvme-fc: remove setting DNR on exception conditions
        nvme-rdma: stop admin queue before freeing it
        nvme-pci: Fix AER reset handling
        nvme-pci: set nvmeq->cq_vector after alloc cq/sq
        nvme: host: core: fix precedence of ternary operator
        nvme: fix lockdep warning in nvme_mpath_clear_current_path
      b7405176
  2. May 29, 2018
  3. May 25, 2018