* [PATCH] block: Make blk_dequeue_request() static
@ 2017-08-29 2:54 Damien Le Moal
2017-08-29 12:49 ` Christoph Hellwig
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Damien Le Moal @ 2017-08-29 2:54 UTC (permalink / raw)
To: linux-block, Jens Axboe; +Cc: Christoph Hellwig, Bart Van Assche
The only caller of this function is blk_start_request() in the same
file. Fix blk_start_request() description accordingly.
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
---
block/blk-core.c | 5 +----
block/blk.h | 1 -
2 files changed, 1 insertion(+), 5 deletions(-)
diff --git a/block/blk-core.c b/block/blk-core.c
index fc1af9097dff..d709c0e3a2ac 100644
--- a/block/blk-core.c
+++ b/block/blk-core.c
@@ -2615,7 +2615,7 @@ struct request *blk_peek_request(struct request_queue *q)
}
EXPORT_SYMBOL(blk_peek_request);
-void blk_dequeue_request(struct request *rq)
+static void blk_dequeue_request(struct request *rq)
{
struct request_queue *q = rq->q;
@@ -2642,9 +2642,6 @@ void blk_dequeue_request(struct request *rq)
* Description:
* Dequeue @req and start timeout timer on it. This hands off the
* request to the driver.
- *
- * Block internal functions which don't want to start timer should
- * call blk_dequeue_request().
*/
void blk_start_request(struct request *req)
{
diff --git a/block/blk.h b/block/blk.h
index fde8b351c166..fcb9775b997d 100644
--- a/block/blk.h
+++ b/block/blk.h
@@ -64,7 +64,6 @@ void blk_rq_bio_prep(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);
void blk_freeze_queue(struct request_queue *q);
--
2.13.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] block: Make blk_dequeue_request() static
2017-08-29 2:54 [PATCH] block: Make blk_dequeue_request() static Damien Le Moal
@ 2017-08-29 12:49 ` Christoph Hellwig
2017-08-29 15:27 ` Bart Van Assche
2017-08-29 15:49 ` Jens Axboe
2 siblings, 0 replies; 4+ messages in thread
From: Christoph Hellwig @ 2017-08-29 12:49 UTC (permalink / raw)
To: Damien Le Moal
Cc: linux-block, Jens Axboe, Christoph Hellwig, Bart Van Assche
On Tue, Aug 29, 2017 at 11:54:37AM +0900, Damien Le Moal wrote:
> The only caller of this function is blk_start_request() in the same
> file. Fix blk_start_request() description accordingly.
>
> Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Looks good,
Reviewed-by: Christoph Hellwig <hch@lst.de>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] block: Make blk_dequeue_request() static
2017-08-29 2:54 [PATCH] block: Make blk_dequeue_request() static Damien Le Moal
2017-08-29 12:49 ` Christoph Hellwig
@ 2017-08-29 15:27 ` Bart Van Assche
2017-08-29 15:49 ` Jens Axboe
2 siblings, 0 replies; 4+ messages in thread
From: Bart Van Assche @ 2017-08-29 15:27 UTC (permalink / raw)
To: linux-block, Damien Le Moal, axboe; +Cc: hch
T24gVHVlLCAyMDE3LTA4LTI5IGF0IDExOjU0ICswOTAwLCBEYW1pZW4gTGUgTW9hbCB3cm90ZToN
Cj4gVGhlIG9ubHkgY2FsbGVyIG9mIHRoaXMgZnVuY3Rpb24gaXMgYmxrX3N0YXJ0X3JlcXVlc3Qo
KSBpbiB0aGUgc2FtZQ0KPiBmaWxlLiBGaXggYmxrX3N0YXJ0X3JlcXVlc3QoKSBkZXNjcmlwdGlv
biBhY2NvcmRpbmdseS4NCg0KUmV2aWV3ZWQtYnk6IEJhcnQgVmFuIEFzc2NoZSA8YmFydC52YW5h
c3NjaGVAd2RjLmNvbT4=
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] block: Make blk_dequeue_request() static
2017-08-29 2:54 [PATCH] block: Make blk_dequeue_request() static Damien Le Moal
2017-08-29 12:49 ` Christoph Hellwig
2017-08-29 15:27 ` Bart Van Assche
@ 2017-08-29 15:49 ` Jens Axboe
2 siblings, 0 replies; 4+ messages in thread
From: Jens Axboe @ 2017-08-29 15:49 UTC (permalink / raw)
To: Damien Le Moal, linux-block; +Cc: Christoph Hellwig, Bart Van Assche
On 08/28/2017 08:54 PM, Damien Le Moal wrote:
> The only caller of this function is blk_start_request() in the same
> file. Fix blk_start_request() description accordingly.
Applied, thanks.
--
Jens Axboe
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-08-29 15:49 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-29 2:54 [PATCH] block: Make blk_dequeue_request() static Damien Le Moal
2017-08-29 12:49 ` Christoph Hellwig
2017-08-29 15:27 ` Bart Van Assche
2017-08-29 15:49 ` Jens Axboe
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.