Re: [PATCH PREEMPT RT] rt-mutex: fix deadlock in device mapper

From: Mike Galbraith
Date: Mon Nov 20 2017 - 22:20:53 EST


On Mon, 2017-11-20 at 16:33 -0500, Mikulas Patocka wrote:
>
> Is there some specific scenario where you need to call
> blk_schedule_flush_plug from rt_spin_lock_fastlock?

Excellent question.  What's the difference between not getting IO
started because you meet a mutex with an rt_mutex under the hood, and
not getting IO started because you meet a spinlock with an rt_mutex
under the hood?  If just doing the mutex side puts this thing back to
sleep, I'm happy.

-Mike