2014-06-03 4:11 GMT+09:00 Martin K. Petersen <martin.petersen@xxxxxxxxxx>: > @@ -2755,6 +2765,10 @@ static int sd_revalidate_disk(struct gendisk *disk) > > blk_queue_flush(sdkp->disk->queue, flush); > > + max_xfer = min_not_zero((unsigned int)sdp->host->max_sectors, > + (unsigned int)sdkp->max_xfer_blocks); Should we use queue_max_hw_sector(sdkp->disk->queue) instead of sdp->host->max_sectors directly? Because some low-level drivers (ipr and pmcraid) may set different max_hw_sectors than host->max_sectors in slave_configure(). > + max_xfer <<= ilog2(sdp->sector_size) - 9; > + blk_queue_max_hw_sectors(sdkp->disk->queue, max_xfer); > set_capacity(disk, sdkp->capacity); > sd_config_write_same(sdkp); > kfree(buffer); -- 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