diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2017-06-29 13:10:47 -0700 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2017-08-17 08:08:58 -0700 |
commit | a4f08141d0b876407ca4e4b0ae1b2dec35851532 (patch) | |
tree | aee8baf463c6af954a7ba76b070800795651b60c /arch/s390 | |
parent | e0892e086aae8d86e33dc8fb87f3d36c901df574 (diff) | |
download | linux-a4f08141d0b876407ca4e4b0ae1b2dec35851532.tar.bz2 |
drivers/ata: Replace spin_unlock_wait() with lock/unlock pair
There is no agreed-upon definition of spin_unlock_wait()'s semantics,
and it appears that all callers could do just as well with a lock/unlock
pair. This commit therefore eliminates the spin_unlock_wait() call and
associated else-clause and hoists the then-clause's lock and unlock out of
the "if" statement. This should be safe from a performance perspective
because according to Tejun there should be few if any drivers that don't
set their own error handler.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Acked-by: Tejun Heo <tj@kernel.org>
Cc: <linux-ide@vger.kernel.org>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: Andrea Parri <parri.andrea@gmail.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/s390')
0 files changed, 0 insertions, 0 deletions