Commit fffdcfe4 authored by Jens Axboe's avatar Jens Axboe Committed by James Bottomley

[PATCH] kill locking around scsi_done()

Lets show the mid layer as a good example and remove the host lock
around the scsi_done() call.
Signed-off-by: default avatarJens Axboe <axboe@suse.de>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>

===== drivers/scsi/scsi.c 1.148 vs edited =====
parent 408dea0e
...@@ -614,9 +614,7 @@ int scsi_dispatch_cmd(struct scsi_cmnd *cmd) ...@@ -614,9 +614,7 @@ int scsi_dispatch_cmd(struct scsi_cmnd *cmd)
printk("queuecommand : command too long.\n")); printk("queuecommand : command too long.\n"));
cmd->result = (DID_ABORT << 16); cmd->result = (DID_ABORT << 16);
spin_lock_irqsave(host->host_lock, flags);
scsi_done(cmd); scsi_done(cmd);
spin_unlock_irqrestore(host->host_lock, flags);
goto out; goto out;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment