From: Stefan Richter Date: Fri, 22 Apr 2011 10:21:44 +0000 (+0200) Subject: firewire: sbp2: omit Scsi_Host lock from queuecommand X-Git-Tag: v3.0-rc1~368^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b75ca5ea8e439893121ad80406a3c04c4b7612ab;p=pandora-kernel.git firewire: sbp2: omit Scsi_Host lock from queuecommand firewire-sbp2 already takes care for internal serialization where required (ORB list accesses), and it does not use cmd->serial_number internally. Hence it is safe to not grab the shost lock around queuecommand. While we are at housekeeping, drop a redundant struct member: sbp2_command_orb.done is set once in a hot path and dereferenced once in a hot path. We can as well dereference sbp2_command_orb.cmd->scsi_done instead. Signed-off-by: Stefan Richter --- Reading git-diff-tree failed