Satish Kharat d1b3f51ee1 scsi: libfc: fix a deadlock in fc_rport_work
In places like fc_rport_recv_plogi_req and fcoe_ctlr_vn_add we always
take the lport disc_mutex lock before the rports mutex
(rp_mutex) lock. Gaurding list_del_rcu(&rdata->peers) with
disc.disc_mutex in fc_rport_work is correct but the rp_mutex lock
can and should to be dropped before taking that lock else results
in a deadlock.

Signed-off-by: Satish Kharat <satishkh@cisco.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2017-10-06 14:58:22 -04:00
..
2017-09-14 21:02:03 -04:00
2017-09-07 12:12:43 -07:00
2017-09-07 12:12:43 -07:00
2017-09-07 12:12:43 -07:00
2017-08-25 17:29:29 -04:00
2017-09-07 12:12:43 -07:00
2017-09-07 12:12:43 -07:00
2017-09-07 12:12:43 -07:00
2017-09-07 21:11:05 -07:00
2017-08-25 17:21:11 -04:00
2017-08-24 22:29:06 -04:00
2017-09-05 08:18:42 -04:00
2017-08-29 21:51:44 -04:00
2017-08-25 17:21:10 -04:00
2017-08-08 11:49:51 -04:00
2017-09-13 10:47:14 -07:00
2017-08-25 17:21:11 -04:00
2017-09-07 12:12:43 -07:00
2017-09-07 12:12:43 -07:00
2017-08-08 11:49:51 -04:00