linux/drivers/nvme/host
Luis Chamberlain 11384580e3 nvme-multipath: add error handling support for add_disk()
We never checked for errors on add_disk() as this function
returned void. Now that this is fixed, use the shiny new
error handling.

Since we now can tell for sure when a disk was added, move
setting the bit NVME_NSHEAD_DISK_LIVE only when we did
add the disk successfully.

Nothing to do here as the cleanup is done elsewhere. We take
care and use test_and_set_bit() because it is protects against
two nvme paths simultaneously calling device_add_disk() on the
same namespace head.

Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
2021-10-20 19:16:03 +02:00
..
core.c nvme: display correct subsystem NQN 2021-10-20 19:16:02 +02:00
fabrics.c nvme: Add connect option 'discovery' 2021-10-20 19:16:02 +02:00
fabrics.h nvme: display correct subsystem NQN 2021-10-20 19:16:02 +02:00
fault_inject.c nvme: enable to inject errors into admin commands 2019-06-21 11:15:50 +02:00
fc.c nvme: display correct subsystem NQN 2021-10-20 19:16:02 +02:00
fc.h nvme-fc: Update header and host for common definitions for LS handling 2020-05-09 16:18:33 -06:00
hwmon.c nvme-hwmon: Return error code when registration fails 2021-03-05 13:41:03 +01:00
ioctl.c remove the lightnvm subsystem 2021-08-14 15:54:09 -06:00
Kconfig nvme: Have NVME_FABRICS select NVME_CORE instead of transport drivers 2021-08-16 21:03:18 +02:00
Makefile remove the lightnvm subsystem 2021-08-14 15:54:09 -06:00
multipath.c nvme-multipath: add error handling support for add_disk() 2021-10-20 19:16:03 +02:00
nvme.h nvme: expose subsystem type in sysfs attribute 'subsystype' 2021-10-20 19:16:02 +02:00
pci.c nvme: wire up completion batching for the IRQ path 2021-10-18 14:40:47 -06:00
rdma.c nvme: display correct subsystem NQN 2021-10-20 19:16:02 +02:00
tcp.c nvme: display correct subsystem NQN 2021-10-20 19:16:02 +02:00
trace.c nvme: add set feature tracing support 2021-08-16 14:42:23 +02:00
trace.h nvme: fix nvme_setup_command metadata trace event 2021-07-21 09:55:44 +02:00
zns.c nvme: move command clear into the various setup helpers 2021-10-19 12:40:51 -06:00