Re: [PATCH 4/7] block: Introduce get_current_ioprio()

2018-11-19 Thread Damien Le Moal
Adam, On 2018/11/20 3:18, Adam Manzanares wrote: > On Mon, 2018-11-19 at 12:51 +0900, Damien Le Moal wrote: >> Define get_current_ioprio() as an inline helper to obtain the caller >> I/O priority from its task I/O context. Use this helper in >> blk_init_request_from_bio() to set a request ioprio.

Re: [PATCH 4/7] block: Introduce get_current_ioprio()

2018-11-19 Thread Adam Manzanares
On Mon, 2018-11-19 at 12:51 +0900, Damien Le Moal wrote: > Define get_current_ioprio() as an inline helper to obtain the caller > I/O priority from its task I/O context. Use this helper in > blk_init_request_from_bio() to set a request ioprio. > > Signed-off-by: Damien Le Moal > --- >

Re: [PATCH 4/7] block: Introduce get_current_ioprio()

2018-11-19 Thread Johannes Thumshirn
Looks good, Reviewed-by: Johannes Thumshirn -- Johannes ThumshirnSUSE Labs jthumsh...@suse.de+49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: Felix Imendörffer, Jane Smithard, Graham Norton HRB 21284 (AG

Re: [PATCH 4/7] block: Introduce get_current_ioprio()

2018-11-19 Thread Christoph Hellwig
On Mon, Nov 19, 2018 at 12:51:28PM +0900, Damien Le Moal wrote: > Define get_current_ioprio() as an inline helper to obtain the caller > I/O priority from its task I/O context. Use this helper in > blk_init_request_from_bio() to set a request ioprio. > > Signed-off-by: Damien Le Moal Looks

[PATCH 4/7] block: Introduce get_current_ioprio()

2018-11-18 Thread Damien Le Moal
Define get_current_ioprio() as an inline helper to obtain the caller I/O priority from its task I/O context. Use this helper in blk_init_request_from_bio() to set a request ioprio. Signed-off-by: Damien Le Moal --- block/blk-core.c | 6 +- include/linux/ioprio.h | 13 + 2