RE: [PATCH 3/4] scsi: increase upper limit for max_sectors

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

 



> -----Original Message-----
> From: linux-scsi-owner@xxxxxxxxxxxxxxx [mailto:linux-scsi-
> owner@xxxxxxxxxxxxxxx] On Behalf Of Akinobu Mita
> Sent: Sunday, 25 May, 2014 7:44 AM
> To: linux-scsi@xxxxxxxxxxxxxxx
> Cc: Akinobu Mita; Jens Axboe; James E.J. Bottomley; Douglas Gilbert
> Subject: [PATCH 3/4] scsi: increase upper limit for max_sectors
> 
...
> -	} else if (sdp->use_16_for_rw) {
> +	} else if ((this_count > 0xffff) || sdp->use_16_for_rw) {

Suggestion: reorder those so the unlikely case of a huge 
this_count is on the right side of the || operator.





--
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