Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935367Ab2JYJnC (ORCPT ); Thu, 25 Oct 2012 05:43:02 -0400 Received: from TYO201.gate.nec.co.jp ([210.143.35.51]:48676 "EHLO tyo201.gate.nec.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934884Ab2JYJm6 (ORCPT ); Thu, 25 Oct 2012 05:42:58 -0400 Message-ID: <50890931.3050906@ce.jp.nec.com> Date: Thu, 25 Oct 2012 18:41:05 +0900 From: "Jun'ichi Nomura" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120717 Thunderbird/14.0 MIME-Version: 1.0 To: "linux-kernel@vger.kernel.org" , device-mapper development CC: Vivek Goyal , Tejun Heo , Jens Axboe , Alasdair G Kergon Subject: [PATCH 1/2] block: move blk_queue_bypass_{start,end} to include/linux/blkdev.h Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1982 Lines: 50 [PATCH] block: move blk_queue_bypass_{start,end} to include/linux/blkdev.h dm wants to use those functions to control the bypass status of half-initialized device. This patch is a preparation for: [PATCH] dm: stay in blk_queue_bypass until queue becomes initialized Signed-off-by: Jun'ichi Nomura Cc: Vivek Goyal Cc: Tejun Heo Cc: Jens Axboe Cc: Alasdair G Kergon --- block/blk.h | 2 -- include/linux/blkdev.h | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/block/blk.h b/block/blk.h index ca51543..48bac5b 100644 --- a/block/blk.h +++ b/block/blk.h @@ -26,8 +26,6 @@ void blk_rq_bio_prep(struct request_queue *q, struct request *rq, struct bio *bio); int blk_rq_append_bio(struct request_queue *q, struct request *rq, struct bio *bio); -void blk_queue_bypass_start(struct request_queue *q); -void blk_queue_bypass_end(struct request_queue *q); void blk_dequeue_request(struct request *rq); void __blk_queue_free_tags(struct request_queue *q); bool __blk_end_bidi_request(struct request *rq, int error, diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 1756001..86ba153 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -949,6 +949,8 @@ bool __must_check blk_get_queue(struct request_queue *); struct request_queue *blk_alloc_queue(gfp_t); struct request_queue *blk_alloc_queue_node(gfp_t, int); extern void blk_put_queue(struct request_queue *); +void blk_queue_bypass_start(struct request_queue *q); +void blk_queue_bypass_end(struct request_queue *q); /* * blk_plug permits building a queue of related requests by holding the I/O -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/