path: root/block/blk-flush.c
diff options
authorChristoph Hellwig <>2017-01-03 14:52:44 +0300
committerJens Axboe <>2017-01-27 15:08:35 -0700
commit5ea708d15a928f7a479987704203616d3274c03b (patch)
tree0b1595694cc628134ccb108f256beed8831887bf /block/blk-flush.c
parente6f7f93d58de74700f83dd0547dd4306248a093d (diff)
block: simplify blk_init_allocated_queue
Return an errno value instead of the passed in queue so that the callers don't have to keep track of two queues, and move the assignment of the request_fn and lock to the caller as passing them as argument doesn't simplify anything. While we're at it also remove two pointless NULL assignments, given that the request structure is zeroed on allocation. Signed-off-by: Christoph Hellwig <> Reviewed-by: Bart Van Assche <> Reviewed-by: Martin K. Petersen <> Reviewed-by: Hannes Reinecke <> Signed-off-by: Jens Axboe <>
Diffstat (limited to 'block/blk-flush.c')
0 files changed, 0 insertions, 0 deletions