Commit 4ec74f0
nvmf: use discovery controller host identifiers for persistent controllers
It is possible that the user will create a persistent discovery controller
with a specific host identifiers (hostnqn and/or hostid). If we get a discovery
change log event on this discovery controller we need to use the same host
identifiers that otherwise we will may not see what the discovery change log
event intended us to see (as we connect with a different hostnqn for example).
Note that we take these identifiers only if they exist in sysfs which gives us
backward compatibility (as hostnqn and hostid are still new).
Reported-by: Yogev Cohen <[email protected]>
Signed-off-by: Sagi Grimberg <[email protected]>
Signed-off-by: Keith Busch <[email protected]>1 parent 4527e14 commit 4ec74f0
1 file changed
Lines changed: 14 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1079 | 1079 | | |
1080 | 1080 | | |
1081 | 1081 | | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
1082 | 1092 | | |
1083 | 1093 | | |
1084 | 1094 | | |
| |||
1117 | 1127 | | |
1118 | 1128 | | |
1119 | 1129 | | |
1120 | | - | |
| 1130 | + | |
1121 | 1131 | | |
1122 | | - | |
| 1132 | + | |
1123 | 1133 | | |
| 1134 | + | |
| 1135 | + | |
1124 | 1136 | | |
1125 | 1137 | | |
1126 | 1138 | | |
| |||
0 commit comments