Revert "scsi: Fix a bdi reregistration race"
authorBart Van Assche <bart.vanassche@sandisk.com>
Fri, 20 Nov 2015 22:11:01 +0000 (14:11 -0800)
committerJames Bottomley <JBottomley@Odin.com>
Wed, 2 Dec 2015 19:53:44 +0000 (11:53 -0800)
commite619e6cbecb7fe97a924d625e848605333457b13
tree7ea5bbe715b8a571028dc83e6200428f8c14d48b
parent8005c49d9aea74d382f474ce11afbbc7d7130bec
Revert "scsi: Fix a bdi reregistration race"

The SCSI sd driver probes SCSI devices asynchronously. The sd_remove()
function, called indirectly by device_del(), waits until asynchronous
probing has finished. Since the block layer queue must only be cleaned
up after probing has finished, device_del() has to be called before
blk_cleanup_queue(). Hence revert commit bf2cf3baa20b.

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
drivers/scsi/scsi_sysfs.c