Re: [PATCH v3 03/11] scsi: scsi_debug: Change shost list lock to a mutex

From: Douglas Gilbert
Date: Tue Mar 28 2023 - 19:40:37 EST


On 2023-03-27 03:43, John Garry wrote:
The shost list lock, sdebug_host_list_lock, is a spinlock. We would only
lock in non-atomic context in this driver, so use a mutex instead, which
is friendlier if we need to schedule when iterating.

Signed-off-by: John Garry <john.g.garry@xxxxxxxxxx>
Acked-by: Douglas Gilbert <dgilbert@xxxxxxxxxxxx

Thanks.