linux-stable/drivers/nvme/host
Christoph Hellwig 35897b920c nvme-fabrics: fix and refine state checks in __nvmf_check_ready
- make sure we only allow internally generates commands in any non-live
   state
 - only allow connect commands on non-live queues when actually in the
   new or connecting states
 - treat all other non-live, non-dead states the same as a default
   cach-all

This fixes a regression where we could not shutdown a controller
orderly as we didn't allow the internal generated Property Set
command, and also ensures we don't accidentally let a Connect command
through in the wrong state.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: James Smart <james.smart@broadcom.com>
2018-06-15 11:21:00 +02:00
..
core.c nvme: remove nvme_reinit_tagset 2018-06-14 17:01:27 +02:00
fabrics.c nvme-fabrics: fix and refine state checks in __nvmf_check_ready 2018-06-15 11:21:00 +02:00
fabrics.h nvme-fabrics: handle the admin-only case properly in nvmf_check_ready 2018-06-15 11:21:00 +02:00
fault_inject.c nvme: Add fault injection feature 2018-03-26 08:53:43 -06:00
fc.c nvme-fabrics: refactor queue ready check 2018-06-15 11:21:00 +02:00
Kconfig IB: Revert "remove redundant INFINIBAND kconfig dependencies" 2018-05-28 10:40:16 -06:00
lightnvm.c lightnvm: remove function name in strings 2018-03-29 17:29:09 -06:00
Makefile nvme: Add fault injection feature 2018-03-26 08:53:43 -06:00
multipath.c nvme: add bio remapping tracepoint 2018-06-11 16:17:46 +02:00
nvme.h nvme: remove nvme_reinit_tagset 2018-06-14 17:01:27 +02:00
pci.c nvme-pci: make CMB SQ mod-param read-only 2018-06-08 12:51:11 -06:00
rdma.c nvme-fabrics: refactor queue ready check 2018-06-15 11:21:00 +02:00
trace.c nvme: add tracepoint for nvme_setup_cmd 2018-01-26 12:34:40 +01:00
trace.h nvme: change order of qid and cmdid in completion trace 2018-04-26 13:30:08 -06:00