Skip to content

Commit

Permalink
block: cleanup REQ_SOFTBARRIER usages
Browse files Browse the repository at this point in the history
blk_insert_request() doesn't need to worry about REQ_SOFTBARRIER.
Don't set it.  Combined with recent ide updates, REQ_SOFTBARRIER is
now only used in elevator proper and for discard requests.

[ Impact: cleanup ]

Signed-off-by: Tejun Heo <tj@kernel.org>
  • Loading branch information
htejun authored and Jens Axboe committed Apr 28, 2009
1 parent e4025f6 commit 10732f5
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion block/blk-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -946,7 +946,6 @@ void blk_insert_request(struct request_queue *q, struct request *rq,
* barrier
*/
rq->cmd_type = REQ_TYPE_SPECIAL;
rq->cmd_flags |= REQ_SOFTBARRIER;

rq->special = data;

Expand Down

0 comments on commit 10732f5

Please sign in to comment.