diff options
author | Takashi Iwai <tiwai@suse.de> | 2018-01-19 13:57:33 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2018-01-19 13:57:33 +0100 |
commit | c86d95cb6b7ecda7b7d56e40c24b7d8b9bf9159a (patch) | |
tree | 3d868496a15be09dfb3a471e7b9dce24c0216d89 /drivers/nvme/host/nvme.h | |
parent | ALSA: usb-audio: Support changing input on Sound Blaster E1 (diff) | |
parent | Merge remote-tracking branches 'asoc/topic/wm8400', 'asoc/topic/wm8903', 'aso... (diff) | |
download | linux-c86d95cb6b7ecda7b7d56e40c24b7d8b9bf9159a.tar.xz linux-c86d95cb6b7ecda7b7d56e40c24b7d8b9bf9159a.zip |
Merge tag 'asoc-v4.16-3' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-next
ASoC: Updates for v4.16
Some final updates for the merge window, this brings in some
improvements to the ACPI GPIO handling for Intel and a bunch of fixes.
Diffstat (limited to 'drivers/nvme/host/nvme.h')
-rw-r--r-- | drivers/nvme/host/nvme.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/nvme/host/nvme.h b/drivers/nvme/host/nvme.h index ea1aa5283e8e..a00eabd06427 100644 --- a/drivers/nvme/host/nvme.h +++ b/drivers/nvme/host/nvme.h @@ -417,6 +417,15 @@ static inline void nvme_mpath_clear_current_path(struct nvme_ns *ns) rcu_assign_pointer(head->current_path, NULL); } struct nvme_ns *nvme_find_path(struct nvme_ns_head *head); + +static inline void nvme_mpath_check_last_path(struct nvme_ns *ns) +{ + struct nvme_ns_head *head = ns->head; + + if (head->disk && list_empty(&head->list)) + kblockd_schedule_work(&head->requeue_work); +} + #else static inline void nvme_failover_req(struct request *req) { @@ -448,6 +457,9 @@ static inline void nvme_mpath_remove_disk_links(struct nvme_ns *ns) static inline void nvme_mpath_clear_current_path(struct nvme_ns *ns) { } +static inline void nvme_mpath_check_last_path(struct nvme_ns *ns) +{ +} #endif /* CONFIG_NVME_MULTIPATH */ #ifdef CONFIG_NVM |