Re: races between blk-cgroup operations and I/O scheds in blk-mq (?)

2017-05-18 Thread Paolo Valente
> Il giorno 17 mag 2017, alle ore 21:12, Tejun Heo ha scritto: > > Hello, > > On Mon, May 15, 2017 at 09:49:13PM +0200, Paolo Valente wrote: >> So, unless you tell me that there are other races I haven't seen, or, >> even worse, that I'm just talking nonsense, I have thought

Re: races between blk-cgroup operations and I/O scheds in blk-mq (?)

2017-05-18 Thread Paolo Valente
> Il giorno 17 mag 2017, alle ore 21:12, Tejun Heo ha scritto: > > Hello, > > On Mon, May 15, 2017 at 09:49:13PM +0200, Paolo Valente wrote: >> So, unless you tell me that there are other races I haven't seen, or, >> even worse, that I'm just talking nonsense, I have thought of a simple >>

Re: races between blk-cgroup operations and I/O scheds in blk-mq (?)

2017-05-17 Thread Tejun Heo
Hello, On Mon, May 15, 2017 at 09:49:13PM +0200, Paolo Valente wrote: > So, unless you tell me that there are other races I haven't seen, or, > even worse, that I'm just talking nonsense, I have thought of a simple > solution to address this issue without resorting to the request_queue > lock:

Re: races between blk-cgroup operations and I/O scheds in blk-mq (?)

2017-05-17 Thread Tejun Heo
Hello, On Mon, May 15, 2017 at 09:49:13PM +0200, Paolo Valente wrote: > So, unless you tell me that there are other races I haven't seen, or, > even worse, that I'm just talking nonsense, I have thought of a simple > solution to address this issue without resorting to the request_queue > lock:

races between blk-cgroup operations and I/O scheds in blk-mq (?)

2017-05-15 Thread Paolo Valente
Hi Tejun, Jens, and anyone else possibly interested in this issue, I have realized that, while blk-cgroup operation are of course protected by the usual request_queue lock, I/O scheduler operations aren't any longer protected by this same lock in blk-mq. They are protected by a finer-grained

races between blk-cgroup operations and I/O scheds in blk-mq (?)

2017-05-15 Thread Paolo Valente
Hi Tejun, Jens, and anyone else possibly interested in this issue, I have realized that, while blk-cgroup operation are of course protected by the usual request_queue lock, I/O scheduler operations aren't any longer protected by this same lock in blk-mq. They are protected by a finer-grained