Re: possible deadlock in generic_file_write_iter

From: Dmitry Vyukov
Date: Tue Nov 07 2017 - 03:18:28 EST


On Tue, Nov 7, 2017 at 9:11 AM, Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:
> On Tue, Nov 07, 2017 at 09:54:42AM +0900, Byungchul Park wrote:
>> > The best I could come up with is something like the below; its not
>> > at all pretty and I could see people objecting; least of all myself for
>> > the __complete() thing, but I ran out of creative naming juice.
>>
>> Patches assigning a lock_class per gendisk were already applied in tip.
>> I believe that solves this.
>>
>> e319e1fbd9d42420ab6eec0bfd75eb9ad7ca63b1
>> block, locking/lockdep: Assign a lock_class per gendisk used for
>> wait_for_completion()
>>
>> I think the following proposal makes kernel too hacky.
>
> Ah, I tough this was with those included...

Great. Let's tell the bot when to expect this fixed:

#syz fix: block, locking/lockdep: Assign a lock_class per gendisk used
for wait_for_completion()