Commit:     6fdea8dbbe4fc021afb601ef5339d5c5825c5cb6
Parent:     34f8f0d294423a7e2ef84a741890b1bfa317aa4e
Author:     Matthew Wilcox <[EMAIL PROTECTED]>
AuthorDate: Wed Aug 15 12:57:01 2007 -0600
Committer:  James Bottomley <[EMAIL PROTECTED]>
CommitDate: Fri Oct 12 14:51:14 2007 -0400

    [SCSI] ide-scsi: Close narrow race in release
    We were releasing the block devices before removing the host, so commands
    could still be coming in which would cause a panic.  Just remove the
    host before releasing the block devices to close this race.
    Signed-off-by: Matthew Wilcox <[EMAIL PROTECTED]>
    Signed-off-by: James Bottomley <[EMAIL PROTECTED]>
 drivers/scsi/ide-scsi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/scsi/ide-scsi.c b/drivers/scsi/ide-scsi.c
index 3b55a6c..d81bb07 100644
--- a/drivers/scsi/ide-scsi.c
+++ b/drivers/scsi/ide-scsi.c
@@ -671,6 +671,7 @@ static void ide_scsi_remove(ide_drive_t *drive)
        struct ide_scsi_obj *scsi = scsihost_to_idescsi(scsihost);
        struct gendisk *g = scsi->disk;
+       scsi_remove_host(scsihost);
        ide_proc_unregister_driver(drive, scsi->driver);
@@ -679,7 +680,6 @@ static void ide_scsi_remove(ide_drive_t *drive)
        g->private_data = NULL;
-       scsi_remove_host(scsihost);
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to