From: Bart Van Assche Date: Fri, 26 Nov 2010 19:50:09 +0000 (-0500) Subject: IB/srp: reduce lock coverage of command completion X-Git-Tag: v2.6.38-rc1~406^2^8~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94a9174c630c8465ed9e97ecd242993429930c05;p=pandora-kernel.git IB/srp: reduce lock coverage of command completion We only need the lock to cover list and credit manipulations, so push those into srp_remove_req() and update the call chains. We reorder the request removal and command completion in srp_process_rsp() to avoid the SCSI mid-layer sending another command before we've released our request and added any credits returned by the target. This prevents us from returning HOST_BUSY unneccesarily. Signed-off-by: Bart Van Assche [ broken out, small cleanups, and modified to avoid potential extraneous HOST_BUSY returns by David Dillow ] Signed-off-by: David Dillow --- Reading git-diff-tree failed