scsi: scsi_debug: ARRAY_SIZE and FF_MEDIA_IO
authorDouglas Gilbert <dgilbert@interlog.com>
Sat, 23 Dec 2017 17:48:13 +0000 (12:48 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 11 Jan 2018 04:25:06 +0000 (23:25 -0500)
commit46f64e70b8672fe6c2258c570b6dfb6a2bb8d87b
tree66917a896050034f32fad9dc15858017babfb58e
parent0a7e69c7d4a302a66d0210e1a8f6efbffbc887b5
scsi: scsi_debug: ARRAY_SIZE and FF_MEDIA_IO

Reviewer suggested using the ARRAY_SIZE macro. That reduced one of the subtle
inter-dependencies in the parser's tables.

It is important that commands which simulate media access, indicate this in the
flags for that command. The flag to do that was FF_DIRECT_IO. On reflection
FF_MEDIA_IO seems a more accurate description.

Signed-off-by: Douglas Gilbert <dgilbert@interlog.com>
Reviewed-by: Bart Van Assche <bart.vanassche@wdc.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_debug.c