diff options
author | Arnd Bergmann <[email protected]> | 2014-03-01 20:51:03 +1300 |
---|---|---|
committer | Geert Uytterhoeven <[email protected]> | 2014-03-10 21:15:09 +0100 |
commit | eff9cf8d6e8b048f2f744a1cc382e213a00f3d2c (patch) | |
tree | 00dae389bf92fee740031bc618754eeb3c68f5bd /lib/memory-notifier-error-inject.c | |
parent | ecc79d4964c4154b8bc2de2a8ffed108f009c405 (diff) |
[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 <[email protected]>
[MSch: fixed completion conditions missed in Arnds' original RFC patch]
Signed-off-by: Michael Schmitz <[email protected]>
Cc: Geert Uytterhoeven <[email protected]>
Cc: James E.J. Bottomley <[email protected]>
Cc: [email protected]
Signed-off-by: Geert Uytterhoeven <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions