]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - block/elevator.c
block: don't call ioc_exit_icq() with the queue lock held for blk-mq
[karo-tx-linux.git] / block / elevator.c
index ac1c9f481a9895525b98601cf96837fd5b4015b6..01139f549b5be73047f346153f5b8fedcb23b3d0 100644 (file)
@@ -983,9 +983,7 @@ static int elevator_switch(struct request_queue *q, struct elevator_type *new_e)
                if (old_registered)
                        elv_unregister_queue(q);
 
-               spin_lock_irq(q->queue_lock);
                ioc_clear_queue(q);
-               spin_unlock_irq(q->queue_lock);
        }
 
        /* allocate, init and register new elevator */