diff options
author | Christoph Hellwig <hch@lst.de> | 2017-01-03 12:52:44 +0100 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-01-27 23:08:35 +0100 |
commit | 5ea708d15a928f7a479987704203616d3274c03b (patch) | |
tree | 0b1595694cc628134ccb108f256beed8831887bf /Documentation | |
parent | block: fix elevator init check (diff) | |
download | linux-5ea708d15a928f7a479987704203616d3274c03b.tar.xz linux-5ea708d15a928f7a479987704203616d3274c03b.zip |
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 <hch@lst.de>
Reviewed-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions