git: nvme - Improve likelihood of dump success

Matthew Dillon dillon at crater.dragonflybsd.org
Fri Apr 13 15:35:04 PDT 2018


commit 049f03b76415d7669e26b8272f00b6b4c9b22d59
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Fri Apr 13 15:31:52 2018 -0700

    nvme - Improve likelihood of dump success
    
    * Get rid of blocking locks in the dump path.  This can cause severe
      problems if curthread is the idle thread.
    
    * Set aside a request on every queue for dump operation.  This
      request can be retrieved and returned trivially.
    
    * Add a few functions to support dump requests and polling for
      completionsssssssss.
    
    * Remove the unused 'ticks' argument from nvme_wait_request().

Summary of changes:
 sys/dev/disk/nvme/nvme.c        | 219 ++++++++++++++++++++++++++++------------
 sys/dev/disk/nvme/nvme.h        |  11 +-
 sys/dev/disk/nvme/nvme_admin.c  |  12 +--
 sys/dev/disk/nvme/nvme_attach.c |   2 +-
 sys/dev/disk/nvme/nvme_disk.c   |  32 ++++--
 sys/dev/disk/nvme/nvme_ioctl.c  |   2 +-
 6 files changed, 193 insertions(+), 85 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/049f03b76415d7669e26b8272f00b6b4c9b22d59


-- 
DragonFly BSD source repository



More information about the Commits mailing list