Skip to content
Commit e4025e46 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Jens Axboe
Browse files

mtip32xx: avoid using semaphores



The "cmd_slot_unal" semaphore is never used in a blocking way
but only as an atomic counter. Change the code to using
atomic_dec_if_positive() as a better API.

Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 6f757231
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment