From: Christoph Hellwig Date: Wed, 22 Jan 2014 13:49:41 +0000 (+0100) Subject: scsi: convert target_busy to an atomic_t X-Git-Tag: omap-for-v3.17/fixes-against-rc2~143^2~88 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ae65c0f9646c29432b69580b80e08632e6cd813;p=pandora-kernel.git scsi: convert target_busy to an atomic_t Avoid taking the host-wide host_lock to check the per-target queue limit. Instead we do an atomic_inc_return early on to grab our slot in the queue, and if necessary decrement it after finishing all checks. Signed-off-by: Christoph Hellwig Reviewed-by: Martin K. Petersen Reviewed-by: Hannes Reinecke Reviewed-by: Webb Scales Acked-by: Jens Axboe Tested-by: Bart Van Assche Tested-by: Robert Elliott --- Reading git-diff-tree failed