]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: serialize ->rescan against ->remove
authorChristoph Hellwig <hch@lst.de>
Mon, 2 Feb 2015 13:01:24 +0000 (14:01 +0100)
committerJames Bottomley <JBottomley@Parallels.com>
Thu, 19 Mar 2015 13:38:43 +0000 (06:38 -0700)
commita9f49259c4cef081f694d98c889ebb52f204693a
treeae421000e744e0d3b766bd2a41468b6eaba052fc
parentcb31652008e7ec8a6ae7345e635c040d274135d2
scsi: serialize ->rescan against ->remove

Lock the device embedded in the scsi_device to protect against
concurrent calls to ->remove.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/scsi_scan.c