File tree 1 file changed +4
-2
lines changed 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -500,6 +500,7 @@ static void sas_revalidate_domain(struct work_struct *work)
500
500
struct sas_discovery_event * ev = to_sas_discovery_event (work );
501
501
struct asd_sas_port * port = ev -> port ;
502
502
struct sas_ha_struct * ha = port -> ha ;
503
+ struct domain_device * ddev = port -> port_dev ;
503
504
504
505
/* prevent revalidation from finding sata links in recovery */
505
506
mutex_lock (& ha -> disco_mutex );
@@ -514,8 +515,9 @@ static void sas_revalidate_domain(struct work_struct *work)
514
515
SAS_DPRINTK ("REVALIDATING DOMAIN on port %d, pid:%d\n" , port -> id ,
515
516
task_pid_nr (current ));
516
517
517
- if (port -> port_dev )
518
- res = sas_ex_revalidate_domain (port -> port_dev );
518
+ if (ddev && (ddev -> dev_type == SAS_FANOUT_EXPANDER_DEVICE ||
519
+ ddev -> dev_type == SAS_EDGE_EXPANDER_DEVICE ))
520
+ res = sas_ex_revalidate_domain (ddev );
519
521
520
522
SAS_DPRINTK ("done REVALIDATING DOMAIN on port %d, pid:%d, res 0x%x\n" ,
521
523
port -> id , task_pid_nr (current ), res );
You can’t perform that action at this time.
0 commit comments