]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3710c4502df68f0f8fa163bf22385fca79115a20
tree66917a896050034f32fad9dc15858017babfb58e
parent15ec7e7c1ae8fd788bd3ad3025572fb224eeffdb
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