[PATCH] block: remove duplicate initialization

2018-08-16 Thread Chaitanya Kulkarni
This patch removes the duplicate initialization of q->queue_head in the blk_alloc_queue_node(). This removes the 2nd initialization so that we preserve the initialization order same as declaration present in struct request_queue. Signed-off-by: Chaitanya Kulkarni --- block/blk-core.c | 1 - 1 fi

Re: [PATCH] block: change return type to bool

2018-08-16 Thread Jens Axboe
On 8/16/18 8:51 AM, Chengguang Xu wrote: > Because blk_do_io_stat() only does a judgement about the request > contributes to IO statistics, it better changes return type to bool. Applied, thanks. -- Jens Axboe

[PATCH] block: change return type to bool

2018-08-16 Thread Chengguang Xu
Because blk_do_io_stat() only does a judgement about the request contributes to IO statistics, it better changes return type to bool. Signed-off-by: Chengguang Xu --- block/blk.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/blk.h b/block/blk.h index d4d67e948920..644