dm-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] block: move blk_queue_bypass_{start,end} to include/linux/blkdev.h
@ 2012-10-25  9:41 Jun'ichi Nomura
  2012-10-25  9:55 ` Jens Axboe
  0 siblings, 1 reply; 2+ messages in thread
From: Jun'ichi Nomura @ 2012-10-25  9:41 UTC (permalink / raw)
  To: linux-kernel@vger.kernel.org, device-mapper development
  Cc: Vivek Goyal, Tejun Heo, Jens Axboe, Alasdair G Kergon

[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 <j-nomura@ce.jp.nec.com>
Cc: Vivek Goyal <vgoyal@redhat.com>
Cc: Tejun Heo <tj@kernel.org>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Alasdair G Kergon <agk@redhat.com>

---
 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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 1/2] block: move blk_queue_bypass_{start,end} to include/linux/blkdev.h
  2012-10-25  9:41 [PATCH 1/2] block: move blk_queue_bypass_{start,end} to include/linux/blkdev.h Jun'ichi Nomura
@ 2012-10-25  9:55 ` Jens Axboe
  0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2012-10-25  9:55 UTC (permalink / raw)
  To: Jun'ichi Nomura
  Cc: linux-kernel@vger.kernel.org, device-mapper development,
	Vivek Goyal, Tejun Heo, Alasdair G Kergon

On 2012-10-25 11:41, Jun'ichi Nomura wrote:
> [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

Applied. The previous state of private blk.h declaration but the symbols
exported was wrong, too.

-- 
Jens Axboe

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-10-25  9:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-25  9:41 [PATCH 1/2] block: move blk_queue_bypass_{start,end} to include/linux/blkdev.h Jun'ichi Nomura
2012-10-25  9:55 ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).