[SCSI] lpfc 8.2.5 : Miscellaneous Fixes
Miscellaneous fixes: - Fix ERRATT flag which was overlapping - Allow RESTART mbx commands through when stopped. - Accept incoming PLOGI when connected to an N_Port. - Fix NPort to NPort pt2pt problems: ADISC and reg_vpi issues - Fix vport unloading error that erroneously cleaned up RSCN buffers - Fix memory leak during repeated unloads - in mbox handling - Fix link bounce vs FLOGI race conditions Signed-off-by: James Smart <james.smart@emulex.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
This commit is contained in:

committed by
James Bottomley

parent
e47c909353
commit
1b32f6aa99
@@ -1946,11 +1946,13 @@ sysfs_mbox_read(struct kobject *kobj, struct bin_attribute *bin_attr,
|
||||
}
|
||||
|
||||
/* If HBA encountered an error attention, allow only DUMP
|
||||
* mailbox command until the HBA is restarted.
|
||||
* or RESTART mailbox commands until the HBA is restarted.
|
||||
*/
|
||||
if ((phba->pport->stopped) &&
|
||||
(phba->sysfs_mbox.mbox->mb.mbxCommand
|
||||
!= MBX_DUMP_MEMORY)) {
|
||||
(phba->sysfs_mbox.mbox->mb.mbxCommand !=
|
||||
MBX_DUMP_MEMORY &&
|
||||
phba->sysfs_mbox.mbox->mb.mbxCommand !=
|
||||
MBX_RESTART)) {
|
||||
sysfs_mbox_idle(phba);
|
||||
spin_unlock_irq(&phba->hbalock);
|
||||
return -EPERM;
|
||||
|
Reference in New Issue
Block a user