diff options
author | Saurav Kashyap <skashyap@marvell.com> | 2019-08-23 02:52:32 -0700 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2019-08-29 18:44:21 -0400 |
commit | 4909e153e608360702ad34f76f72190bfaec3d9d (patch) | |
tree | 66af56634dbe612836b1345d16a634dbc5d72e37 /drivers | |
parent | e82e6ff7779a76ea9b2161ee5fe2cdd9387cf263 (diff) | |
download | linux-stable-4909e153e608360702ad34f76f72190bfaec3d9d.tar.gz linux-stable-4909e153e608360702ad34f76f72190bfaec3d9d.tar.bz2 linux-stable-4909e153e608360702ad34f76f72190bfaec3d9d.zip |
scsi: qedf: Stop sending fipvlan request on unload
- On some setups fipvlan can be retried for long duration and the
connection to switch was not there so it was not getting any reply.
- During unload this thread was hanging.
Problem Resolution:
Check if unload is in progress, then quit from fipvlan thread.
Signed-off-by: Saurav Kashyap <skashyap@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/qedf/qedf_main.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/scsi/qedf/qedf_main.c b/drivers/scsi/qedf/qedf_main.c index 3e245b08fb10..2d69860d1f06 100644 --- a/drivers/scsi/qedf/qedf_main.c +++ b/drivers/scsi/qedf/qedf_main.c @@ -128,6 +128,11 @@ static bool qedf_initiate_fipvlan_req(struct qedf_ctx *qedf) return false; } + if (test_bit(QEDF_UNLOADING, &qedf->flags)) { + QEDF_ERR(&qedf->dbg_ctx, "Driver unloading.\n"); + return false; + } + if (qedf->vlan_id > 0) { QEDF_INFO(&qedf->dbg_ctx, QEDF_LOG_DISC, "vlan = 0x%x already set.\n", qedf->vlan_id); |