Skip to content

Commit 5cf86c2

Browse files
committed
fabrics: Only disconnect discovery controllers during 'connect-all'
When calling 'connect-all' the 'persistent' argument only applies to discovery controllers; normal I/O controllers should stay connected, as this was kinda the point... Signed-off-by: Hannes Reinecke <hare@suse.de>
1 parent de54477 commit 5cf86c2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fabrics.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,8 @@ static int __discover(nvme_ctrl_t c, const struct nvme_fabrics_config *defcfg,
302302
__discover(child, defcfg, raw,
303303
persistent,
304304
true, flags);
305-
if (!persistent) {
305+
if (e->subtype != NVME_NQN_NVME &&
306+
!persistent) {
306307
nvme_disconnect_ctrl(child);
307308
nvme_free_ctrl(child);
308309
}

0 commit comments

Comments
 (0)