Skip to content
Commit b75ca5ea authored by Stefan Richter's avatar Stefan Richter
Browse files

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: default avatarStefan Richter <stefanr@s5r6.in-berlin.de>
parent 6ea9e7bb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment