Re: [PATCH v3] blkmapd: Skip the SCSI ID if data length is zero

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

 




On 07/14/2015 03:15 AM, Christoph Hellwig wrote:
>> +		/* Needs an SCSI ID with unique date not zero length */
>> +		if (!dev_id->len)
>> +			continue;
> 
> That explains what the code does, not why it does so.
> 
> How about:
> 
> 		/*
> 		 * Some buggy targets (e.g. VMWare) export zero length
> 		 * EVPD pages, skip them to not confuse the device id
> 		 * cache.
> 		 */
> 
I'm not a big fan of calling out vendors in comments. I'm thinking
dropping the "buggy" and "(e.g. VMWare)" would be appropriated.

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



[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux