]> www.infradead.org Git - users/willy/xarray.git/commit
scsi: core: Add kunit tests for scsi_check_passthrough()
authorMike Christie <michael.christie@oracle.com>
Tue, 23 Jan 2024 00:22:20 +0000 (18:22 -0600)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 30 Jan 2024 02:20:55 +0000 (21:20 -0500)
commit25a1f7a0a1fe6fa69a5370fbb5cc6dcf3726d81e
tree0a84246ab966f97151da0600f32e4262b09d1d1a
parentb8c3a7bac9b6cddeeb7cb82f3372310ecabf83ef
scsi: core: Add kunit tests for scsi_check_passthrough()

Add some kunit tests for scsi_check_passthrough() so we can easily make
sure we are hitting the cases for which it's difficult to replicate in
hardware or even scsi_debug.

Signed-off-by: Mike Christie <michael.christie@oracle.com>
Link: https://lore.kernel.org/r/20240123002220.129141-20-michael.christie@oracle.com
Acked-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/Kconfig
drivers/scsi/scsi_lib.c
drivers/scsi/scsi_lib_test.c [new file with mode: 0644]