1. 15 4月, 2021 10 次提交
  2. 13 4月, 2021 1 次提交
  3. 06 4月, 2021 4 次提交
  4. 03 4月, 2021 19 次提交
  5. 13 3月, 2021 1 次提交
  6. 11 3月, 2021 5 次提交
    • D
      nvme-pci: add the DISABLE_WRITE_ZEROES quirk for a Samsung PM1725a · abbb5f59
      Dmitry Monakhov 提交于
      This adds a quirk for Samsung PM1725a drive which fixes timeouts and
      I/O errors due to the fact that the controller does not properly
      handle the Write Zeroes command, dmesg log:
      
      nvme nvme0: I/O 528 QID 10 timeout, aborting
      nvme nvme0: I/O 529 QID 10 timeout, aborting
      nvme nvme0: I/O 530 QID 10 timeout, aborting
      nvme nvme0: I/O 531 QID 10 timeout, aborting
      nvme nvme0: I/O 532 QID 10 timeout, aborting
      nvme nvme0: I/O 533 QID 10 timeout, aborting
      nvme nvme0: I/O 534 QID 10 timeout, aborting
      nvme nvme0: I/O 535 QID 10 timeout, aborting
      nvme nvme0: Abort status: 0x0
      nvme nvme0: Abort status: 0x0
      nvme nvme0: Abort status: 0x0
      nvme nvme0: Abort status: 0x0
      nvme nvme0: Abort status: 0x0
      nvme nvme0: Abort status: 0x0
      nvme nvme0: Abort status: 0x0
      nvme nvme0: Abort status: 0x0
      nvme nvme0: I/O 528 QID 10 timeout, reset controller
      nvme nvme0: controller is down; will reset: CSTS=0x3, PCI_STATUS=0x10
      nvme nvme0: Device not ready; aborting reset, CSTS=0x3
      nvme nvme0: Device not ready; aborting reset, CSTS=0x3
      nvme nvme0: Removing after probe failure status: -19
      nvme0n1: detected capacity change from 6251233968 to 0
      blk_update_request: I/O error, dev nvme0n1, sector 32776 op 0x1:(WRITE) flags 0x3000 phys_seg 6 prio class 0
      blk_update_request: I/O error, dev nvme0n1, sector 113319936 op 0x9:(WRITE_ZEROES) flags 0x800 phys_seg 0 prio class 0
      Buffer I/O error on dev nvme0n1p2, logical block 1, lost async page write
      blk_update_request: I/O error, dev nvme0n1, sector 113319680 op 0x9:(WRITE_ZEROES) flags 0x0 phys_seg 0 prio class 0
      Buffer I/O error on dev nvme0n1p2, logical block 2, lost async page write
      blk_update_request: I/O error, dev nvme0n1, sector 113319424 op 0x9:(WRITE_ZEROES) flags 0x0 phys_seg 0 prio class 0
      Buffer I/O error on dev nvme0n1p2, logical block 3, lost async page write
      blk_update_request: I/O error, dev nvme0n1, sector 113319168 op 0x9:(WRITE_ZEROES) flags 0x0 phys_seg 0 prio class 0
      Buffer I/O error on dev nvme0n1p2, logical block 4, lost async page write
      blk_update_request: I/O error, dev nvme0n1, sector 113318912 op 0x9:(WRITE_ZEROES) flags 0x0 phys_seg 0 prio class 0
      Buffer I/O error on dev nvme0n1p2, logical block 5, lost async page write
      blk_update_request: I/O error, dev nvme0n1, sector 113318656 op 0x9:(WRITE_ZEROES) flags 0x0 phys_seg 0 prio class 0
      Buffer I/O error on dev nvme0n1p2, logical block 6, lost async page write
      blk_update_request: I/O error, dev nvme0n1, sector 113318400 op 0x9:(WRITE_ZEROES) flags 0x0 phys_seg 0 prio class 0
      blk_update_request: I/O error, dev nvme0n1, sector 113318144 op 0x9:(WRITE_ZEROES) flags 0x0 phys_seg 0 prio class 0
      blk_update_request: I/O error, dev nvme0n1, sector 113317888 op 0x9:(WRITE_ZEROES) flags 0x0 phys_seg 0 prio class 0
      Signed-off-by: NDmitry Monakhov <dmtrmonakhov@yandex-team.ru>
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      abbb5f59
    • C
      nvme-core: check ctrl css before setting up zns · 0ec84df4
      Chaitanya Kulkarni 提交于
      Ensure multiple Command Sets are supported before starting to setup a
      ZNS namespace.
      Signed-off-by: NChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
      [hch: move the check around a bit]
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      0ec84df4
    • J
      nvme-fc: fix racing controller reset and create association · f20ef34d
      James Smart 提交于
      Recent patch to prevent calling __nvme_fc_abort_outstanding_ios in
      interrupt context results in a possible race condition. A controller
      reset results in errored io completions, which schedules error
      work. The change of error work to a work element allows it to fire
      after the ctrl state transition to NVME_CTRL_CONNECTING, causing
      any outstanding io (used to initialize the controller) to fail and
      cause problems for connect_work.
      
      Add a state check to only schedule error work if not in the RESETTING
      state.
      
      Fixes: 19fce047 ("nvme-fc: avoid calling _nvme_fc_abort_outstanding_ios from interrupt context")
      Signed-off-by: NNigel Kirkland <nkirkland2304@gmail.com>
      Signed-off-by: NJames Smart <jsmart2021@gmail.com>
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      f20ef34d
    • H
      nvme-fc: return NVME_SC_HOST_ABORTED_CMD when a command has been aborted · ae3afe63
      Hannes Reinecke 提交于
      When a command has been aborted we should return NVME_SC_HOST_ABORTED_CMD
      to be consistent with the other transports.
      Signed-off-by: NHannes Reinecke <hare@suse.de>
      Reviewed-by: NSagi Grimberg <sagi@grimberg.me>
      Reviewed-by: NJames Smart <jsmart2021@gmail.com>
      Reviewed-by: NDaniel Wagner <dwagner@suse.de>
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      ae3afe63
    • H
      nvme-fc: set NVME_REQ_CANCELLED in nvme_fc_terminate_exchange() · 3c7aafbc
      Hannes Reinecke 提交于
      nvme_fc_terminate_exchange() is being called when exchanges are
      being deleted, and as such we should be setting the NVME_REQ_CANCELLED
      flag to have identical behaviour on all transports.
      Signed-off-by: NHannes Reinecke <hare@suse.de>
      Reviewed-by: NKeith Busch <kbusch@kernel.org>
      Reviewed-by: NSagi Grimberg <sagi@grimberg.me>
      Reviewed-by: NJames Smart <jsmart2021@gmail.com>
      Reviewed-by: NDaniel Wagner <dwagner@suse.de>
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      3c7aafbc