summaryrefslogtreecommitdiff
path: root/scripts/basic
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2016-06-01 00:15:07 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2016-07-13 06:16:31 +0300
commitfb0cc8d1c1881c56683123ff129452e88fdf5575 (patch)
tree7df3e14ae2d4446d67b2a129f99081bd96dcc2d4 /scripts/basic
parentbaa6719f902af9c03e528b08dfb847de295b5137 (diff)
downloadlinux-fb0cc8d1c1881c56683123ff129452e88fdf5575.tar.xz
scsi_debug: fix sleep in invalid context
In this post: http://www.spinics.net/lists/linux-scsi/msg97124.html the author shows some kernel infrastructure complaining about a sleep in an invalid context. Remove offending call to vmalloc(). Instead of using kzalloc() which reviewers didn't like, use a bucket system (64 bytes on the stack) and potentially multiple calls to sg_pcopy_from_buffer() to construct the 'data-in' buffer for the SCSI REPORT LUNS command. Signed-off-by: Douglas Gilbert <dgilbert@interlog.com> Acked-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Bart Van Assche <bart.vanassche@sandisk.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions