Skip to content

Commit

Permalink
block: remove various blk_queue_*() setting functions in blk_init_que…
Browse files Browse the repository at this point in the history
…ue_node()

It calls blk_queue_make_request(), which sets the identical set of limits.

Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
Jens Axboe committed Mar 24, 2009
1 parent 10cbda9 commit f3b144a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions block/blk-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -603,13 +603,10 @@ blk_init_queue_node(request_fn_proc *rfn, spinlock_t *lock, int node_id)
q->queue_flags = QUEUE_FLAG_DEFAULT;
q->queue_lock = lock;

blk_queue_segment_boundary(q, BLK_SEG_BOUNDARY_MASK);

/*
* This also sets hw/phys segments, boundary and size
*/
blk_queue_make_request(q, __make_request);
blk_queue_max_segment_size(q, MAX_SEGMENT_SIZE);

blk_queue_max_hw_segments(q, MAX_HW_SEGMENTS);
blk_queue_max_phys_segments(q, MAX_PHYS_SEGMENTS);

q->sg_reserved_size = INT_MAX;

Expand Down

0 comments on commit f3b144a

Please sign in to comment.