1. 06 May, 2016 22 commits
  2. 03 May, 2016 1 commit
    • Keith Busch's avatar
      NVMe: Fix reset/remove race · 87c32077
      Keith Busch authored
      This fixes a scenario where device is present and being reset, but a
      request to unbind the driver occurs.
      
      A previous patch series addressing a device failure removal scenario
      flushed reset_work after controller disable to unblock reset_work waiting
      on a completion that wouldn't occur. This isn't safe as-is. The broken
      scenario can potentially be induced with:
      
        modprobe nvme && modprobe -r nvme
      
      To fix, the reset work is flushed immediately after setting the controller
      removing flag, and any subsequent reset will not proceed with controller
      initialization if the flag is set.
      
      The controller status must be polled while active, so the watchdog timer
      is also left active until the controller is disabled to cleanup requests
      that may be stuck during namespace removal.
      
      [Fixes: ff23a2a1]
      Signed-off-by: default avatarKeith Busch <keith.busch@intel.com>
      Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
      Reviewed-by: default avatarJohannes Thumshirn <jthumshirn@suse.de>
      Reviewed-by: default avatarSagi Grimberg <sagi@grimberg.me>
      Signed-off-by: default avatarJens Axboe <axboe@fb.com>
      87c32077
  3. 02 May, 2016 11 commits
  4. 26 Apr, 2016 3 commits
  5. 13 Apr, 2016 2 commits
  6. 12 Apr, 2016 1 commit
    • Jens Axboe's avatar
      NVMe: silence warning about unused 'dev' · 7e197930
      Jens Axboe authored
      Depending on options, we might not be using dev in nvme_cancel_io():
      
      drivers/nvme/host/pci.c: In function ‘nvme_cancel_io’:
      drivers/nvme/host/pci.c:970:19: warning: unused variable ‘dev’ [-Wunused-variable]
        struct nvme_dev *dev = data;
                         ^
      
      So get rid of it, and just cast for the dev_dbg_ratelimited() call.
      
      Fixes: 82b4552b ("nvme: Use blk-mq helper for IO termination")
      Signed-off-by: default avatarJens Axboe <axboe@fb.com>
      7e197930