Skip to content

Commit 39a6e3e

Browse files
sagigrimbergkeithbusch
authored andcommitted
fabrics: set keep_alive_tmo also for discovery controllers
We may use persistent discovery connections on referrals so don't restrict it for discovery controllers. Signed-off-by: Sagi Grimberg <[email protected]> Signed-off-by: Keith Busch <[email protected]>
1 parent 84c7e3c commit 39a6e3e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fabrics.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -947,7 +947,7 @@ static int connect_ctrl(struct nvmf_disc_rsp_page_entry *e)
947947
p += len;
948948
}
949949

950-
if (cfg.keep_alive_tmo && !discover) {
950+
if (cfg.keep_alive_tmo) {
951951
len = sprintf(p, ",keep_alive_tmo=%d", cfg.keep_alive_tmo);
952952
if (len < 0)
953953
return -EINVAL;

0 commit comments

Comments
 (0)