scsi: virtio: Reduce BUG if total_sg > virtqueue size to WARN.
authorRichard W.M. Jones <rjones@redhat.com>
Thu, 10 Aug 2017 16:56:51 +0000 (17:56 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 25 Aug 2017 02:28:51 +0000 (22:28 -0400)
commit44ed8089e991a60d614abe0ee4b9057a28b364e4
treef44db9181e333dcf02dd3a2c8b5e233337825326
parent42d7c10f23786ed8521338ba6fd905a2459fa1e0
scsi: virtio: Reduce BUG if total_sg > virtqueue size to WARN.

If using indirect descriptors, you can make the total_sg as large as you
want.  If not, BUG is too serious because the function later returns
-ENOSPC.

Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/virtio/virtio_ring.c