Re: [PATCH 03/18] block: fix elevator init check

2017-01-26 Thread Bart Van Assche
On Wed, 2017-01-25 at 18:25 +0100, Christoph Hellwig wrote: > We can't initalize the elevator fields for flushes as flush share space > in struct request with the elevator data. But currently we can't > commnicate that a request is a flush through blk_get_request as we > can only pass READ or WRIT

Re: [PATCH 03/18] block: fix elevator init check

2017-01-25 Thread Martin K. Petersen
> "Christoph" == Christoph Hellwig writes: Christoph> We can't initalize the elevator fields for flushes as flush Christoph> share space in struct request with the elevator data. But Christoph> currently we can't commnicate that a request is a flush communicate Christoph> through blk_get_r

[PATCH 03/18] block: fix elevator init check

2017-01-25 Thread Christoph Hellwig
We can't initalize the elevator fields for flushes as flush share space in struct request with the elevator data. But currently we can't commnicate that a request is a flush through blk_get_request as we can only pass READ or WRITE, and the low-level code looks at the possible NULL bio to check fo