From: Arnd Bergmann Date: Sat, 1 Mar 2014 07:51:03 +0000 (+1300) Subject: [SCSI] atari_scsi: Fix sleep_on race X-Git-Tag: v3.15-rc1~166^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eff9cf8d6e8b048f2f744a1cc382e213a00f3d2c;p=pandora-kernel.git [SCSI] atari_scsi: Fix sleep_on race sleep_on is known broken and going away. The atari_scsi driver is one of two remaining users in the falcon_get_lock() function, which is a rather crazy piece of code. This does not attempt to fix the driver's locking scheme in general, but at least prevents falcon_get_lock from going to sleep when no other thread holds the same lock or tries to get it, and we no longer schedule with irqs disabled. Signed-off-by: Arnd Bergmann [MSch: fixed completion conditions missed in Arnds' original RFC patch] Signed-off-by: Michael Schmitz Cc: Geert Uytterhoeven Cc: James E.J. Bottomley Cc: linux-scsi@vger.kernel.org Signed-off-by: Geert Uytterhoeven --- Reading git-diff-tree failed