/* Description: Enables a low level driver to set an upper limit on the number of hw data segments in a request. This would be the largest number of address/length pairs the host adapter can actually give at once to the device.  */
void blk_queue_max_hw_segments(struct request_queue *q, unsigned short max_segments)
/* Description: Enables a low level driver to set an upper limit on the number of hw data segments in a request. This would be the largest number of address/length pairs the host adapter can actually give at once to the device.  */
void blk_queue_max_hw_segments(struct request_queue *q, unsigned short max_segments)
{
	if (!max_segments) {
		max_segments = 1;
		printk(KERN_INFO "%s: set to minimum %d\n",
		       __func__, max_segments);
	}
	q->limits.max_hw_segments = max_segments;
}