[dm-devel] [PATCH 04/18] block: simplify blk_init_allocated_queue

Bart Van Assche Bart.VanAssche at sandisk.com
Thu Jan 26 23:27:22 UTC 2017


On Wed, 2017-01-25 at 18:25 +0100, Christoph Hellwig wrote:
> 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.

Reviewed-by: Bart Van Assche <bart.vanassche at sandisk.com>




More information about the dm-devel mailing list