put_cpu();
if (ret == -EAGAIN) {
+ if (payload_sz > sizeof(cmd_request->mpb))
+ kfree(payload);
/* no more space */
return SCSI_MLQUEUE_DEVICE_BUSY;
}
* from the host.
*/
host->sg_tablesize = (stor_device->max_transfer_bytes >> PAGE_SHIFT);
+#if defined(CONFIG_X86_32)
+ dev_warn(&device->device, "adjusting sg_tablesize 0x%x -> 0x%x",
+ host->sg_tablesize, MAX_MULTIPAGE_BUFFER_COUNT);
+ host->sg_tablesize = MAX_MULTIPAGE_BUFFER_COUNT;
+#endif
+
/*
* Set the number of HW queues we are supporting.
*/