Re: [PATCH] thaw FC local port

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Dec 17, 2010 at 7:18 AM, Robert Love <robert.w.love@xxxxxxxxx> wrote:
> On Thu, 2010-12-16 at 08:07 -0800, Hillf Danton wrote:
>> The state machine of local port is freezed if it could not get ready,
>> so thawing is necessary.
>>
> Please start putting a prefix "fcoe: ", "libfc: " or "libfcoe: " on your
> patch titles. Also, please provide more meaningful commit messages. I
> believe that I've pointed out these two issues with your patches before.
>
>> Signed-off-by: Hillf Danton <dhillf@xxxxxxxxx>
>> ---
>>
>> --- a/drivers/scsi/libfc/fc_lport.c  2010-11-01 19:54:12.000000000 +0800
>> +++ b/drivers/scsi/libfc/fc_lport.c  2010-12-17 00:08:06.000000000 +0800
>> @@ -1514,11 +1514,11 @@ void fc_lport_enter_flogi(struct fc_lpor
>>
>> Â Â Â fc_lport_state_enter(lport, LPORT_ST_FLOGI);
>>
>> - Â Â if (lport->point_to_multipoint) {
>> - Â Â Â Â Â Â if (lport->port_id)
>> + Â Â if (lport->point_to_multipoint)
>> + Â Â Â Â Â Â if (lport->port_id) {
>> Â Â Â Â Â Â Â Â Â Â Â fc_lport_enter_ready(lport);
>> - Â Â Â Â Â Â return;
>> - Â Â }
>> + Â Â Â Â Â Â Â Â Â Â return;
>> + Â Â Â Â Â Â }
>>
>> Â Â Â fp = fc_frame_alloc(lport, sizeof(struct fc_els_flogi));
>> Â Â Â if (!fp)
>
> We do not want to proceed with sending a FLOGI here when we're in
> point-to-multipoint (VN2VN) mode. VN2VN is a mode where there is no
> fabric and we FLOGI directly into the remote port. So for VN2VN the
> FLOGI happens in the rport layer.

How will lport get out of the LPORT_ST_FLOGI state then?

Thanks

Hillf
>
> //Rob
>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux