scsi_debug: take sdebug_host_list_lock when changing capacity
authorEwan D. Milne <emilne@redhat.com>
Thu, 4 Dec 2014 16:49:26 +0000 (11:49 -0500)
committerChristoph Hellwig <hch@lst.de>
Mon, 15 Dec 2014 12:34:26 +0000 (13:34 +0100)
commit4bc6b63482a069baa2eeaba3e4a0b5df75263dc5
tree91459de2c97b39f534c43fddd19ffdcf421656be
parent6d6f3807ccb7ac884ff0d0dcb2510a0ca4dd3ace
scsi_debug: take sdebug_host_list_lock when changing capacity

All other traversals of the sdebug_host_list take the lock.

Signed-off-by: Ewan D. Milne <emilne@redhat.com>
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/scsi_debug.c