Commit 5ab25a3
nvme: don't intialize hwmon for discovery controllers
Discovery controllers usually don't support smart log page command.
So when we connect to the discovery controller we see this warning:
nvme nvme0: Failed to read smart log (error 24577)
nvme nvme0: new ctrl: NQN "nqn.2014-08.org.nvmexpress.discovery", addr 192.168.123.1:8009
nvme nvme0: Removing ctrl: NQN "nqn.2014-08.org.nvmexpress.discovery"
Introduce a new helper to understand if the controller is a discovery
controller and use this helper to skip nvme_init_hwmon (also use it in
other places that we check if the controller is a discovery controller).
Fixes: 400b6a7 ("nvme: Add hardware monitoring support")
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>1 parent ca1ff67 commit 5ab25a3
1 file changed
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2856 | 2856 | | |
2857 | 2857 | | |
2858 | 2858 | | |
| 2859 | + | |
| 2860 | + | |
| 2861 | + | |
| 2862 | + | |
| 2863 | + | |
2859 | 2864 | | |
2860 | 2865 | | |
2861 | 2866 | | |
| |||
2875 | 2880 | | |
2876 | 2881 | | |
2877 | 2882 | | |
2878 | | - | |
| 2883 | + | |
2879 | 2884 | | |
2880 | 2885 | | |
2881 | 2886 | | |
| |||
3144 | 3149 | | |
3145 | 3150 | | |
3146 | 3151 | | |
3147 | | - | |
| 3152 | + | |
3148 | 3153 | | |
3149 | 3154 | | |
3150 | 3155 | | |
| |||
3184 | 3189 | | |
3185 | 3190 | | |
3186 | 3191 | | |
3187 | | - | |
| 3192 | + | |
3188 | 3193 | | |
3189 | 3194 | | |
3190 | 3195 | | |
| |||
0 commit comments