diff options
author | Finn Thain <fthain@telegraphics.com.au> | 2016-01-03 06:05:24 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2016-01-07 03:42:56 +0100 |
commit | 1d3db59d59861481349437231c263b6c7a0eef78 (patch) | |
tree | 3291622981ca55e023cd035e3a7431eed6d5ef31 /drivers/md/dm.h | |
parent | ncr5380: Eliminate selecting state (diff) | |
download | linux-1d3db59d59861481349437231c263b6c7a0eef78.tar.xz linux-1d3db59d59861481349437231c263b6c7a0eef78.zip |
ncr5380: Always retry arbitration and selection
If NCR5380_select() returns -1, it means arbitration was lost or selection
failed and should be retried. If the main loop simply terminates when there
are still commands on the issue queue, they will remain queued until they
expire.
Fix this by clearing the 'done' flag after selection failure or lost
arbitration.
The "else break" clause in NCR5380_main() that gets removed here appears
to be a vestige of a long-gone loop that iterated over host instances.
See commit 491447e1fcff ("[PATCH] next NCR5380 updates") in
history/history.git.
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Tested-by: Ondrej Zary <linux@rainbow-software.org>
Tested-by: Michael Schmitz <schmitzmic@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/md/dm.h')
0 files changed, 0 insertions, 0 deletions