Re: [PATCH] block/loop: fix race between I/O and set_status

2017-03-13 Thread Jiri Slaby
On 02/11/2017, 04:40 AM, Ming Lei wrote: > Inside set_status, transfer need to setup again, so > we have to drain IO before the transition, otherwise > oops may be triggered like the following: > > divide error: [#1] SMP KASAN > CPU: 0 PID: 2935 Comm: loop7 Not tainted 4.10.0-rc7+

Re: [PATCH] block/loop: fix race between I/O and set_status

2017-02-13 Thread Jens Axboe
On 02/10/2017 08:40 PM, Ming Lei wrote: > Inside set_status, transfer need to setup again, so > we have to drain IO before the transition, otherwise > oops may be triggered like the following: > > divide error: [#1] SMP KASAN > CPU: 0 PID: 2935 Comm: loop7 Not tainted 4.10.0-rc7+

[PATCH] block/loop: fix race between I/O and set_status

2017-02-10 Thread Ming Lei
Inside set_status, transfer need to setup again, so we have to drain IO before the transition, otherwise oops may be triggered like the following: divide error: [#1] SMP KASAN CPU: 0 PID: 2935 Comm: loop7 Not tainted 4.10.0-rc7+ #213 Hardware name: QEMU Standard PC (i4