Commit:     79352e9f94cff4078f2ffefac4a41b7f14046fb6
Parent:     cf47c7a26ca13b944900dce208890c5b6d5f3a14
Author:     Stefan Richter <[EMAIL PROTECTED]>
AuthorDate: Mon Jun 18 18:46:49 2007 +0200
Committer:  Stefan Richter <[EMAIL PROTECTED]>
CommitDate: Tue Jul 10 00:07:44 2007 +0200

    firewire: fw-sbp2: let SCSI shutdown commands through before logout
    This affects of course only the "soft shutdown" case, e.g. "modprobe -r
    firewire-sbp2", while it doesn't matter for hot unplug.
    Signed-off-by: Stefan Richter <[EMAIL PROTECTED]>
    Signed-off-by: Kristian Høgsberg <[EMAIL PROTECTED]>
 drivers/firewire/fw-sbp2.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/firewire/fw-sbp2.c b/drivers/firewire/fw-sbp2.c
index 49f7fd5..846aad8 100644
--- a/drivers/firewire/fw-sbp2.c
+++ b/drivers/firewire/fw-sbp2.c
@@ -520,17 +520,15 @@ static int sbp2_agent_reset(struct fw_unit *unit)
 static void sbp2_reconnect(struct work_struct *work);
 static struct scsi_host_template scsi_driver_template;
-static void
-release_sbp2_device(struct kref *kref)
+static void release_sbp2_device(struct kref *kref)
        struct sbp2_device *sd = container_of(kref, struct sbp2_device, kref);
        struct Scsi_Host *host =
                container_of((void *)sd, struct Scsi_Host, hostdata[0]);
+       scsi_remove_host(host);
        sbp2_send_management_orb(sd->unit, sd->node_id, sd->generation,
                                 SBP2_LOGOUT_REQUEST, sd->login_id, NULL);
-       scsi_remove_host(host);
        fw_notify("removed sbp2 unit %s\n", sd->unit->device.bus_id);
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