]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1a8e22f74c986c888b2f8d31836765018a33d2d9
tree7ea5bbe715b8a571028dc83e6200428f8c14d48b
parent2715d332e6151136472842d51b2ec873c0652275
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 978ea209a819.

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