Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

scsi: core: Use SCSI_SCAN_INITIAL in do_scsi_scan_host()

Instead of using hardcoded '0' as the do_scsi_scan_host() ->
scsi_scan_host_selected() rescan arg, use proper macro SCSI_SCAN_INITIAL.

Signed-off-by: John Garry <john.g.garry@oracle.com>
Link: https://lore.kernel.org/r/20221121121725.1910795-3-john.g.garry@oracle.com
Reviewed-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Reviewed-by: Jason Yan <yanaijie@huawei.com>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

John Garry and committed by
Martin K. Petersen
425b27a0 35bd6f9f

+1 -1
+1 -1
drivers/scsi/scsi_scan.c
··· 1920 1920 msleep(10); 1921 1921 } else { 1922 1922 scsi_scan_host_selected(shost, SCAN_WILD_CARD, SCAN_WILD_CARD, 1923 - SCAN_WILD_CARD, 0); 1923 + SCAN_WILD_CARD, SCSI_SCAN_INITIAL); 1924 1924 } 1925 1925 } 1926 1926