All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] blk-mq: Remove blk_mq_queue_data.list
@ 2017-04-03 20:54 Bart Van Assche
  2017-04-04  6:59 ` Christoph Hellwig
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Bart Van Assche @ 2017-04-03 20:54 UTC (permalink / raw)
  To: Jens Axboe; +Cc: linux-block

The block layer core sets blk_mq_queue_data.list but no block=0A=
drivers read that member. Hence remove it and also the code that=0A=
is used to set this member.=0A=
=0A=
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>=0A=
---=0A=
 block/blk-mq.c         | 17 -----------------=0A=
 include/linux/blk-mq.h |  1 -=0A=
 2 files changed, 18 deletions(-)=0A=
=0A=
diff --git a/block/blk-mq.c b/block/blk-mq.c=0A=
index 8fb983e6e2e4..b5580b09b4a5 100644=0A=
--- a/block/blk-mq.c=0A=
+++ b/block/blk-mq.c=0A=
@@ -984,17 +984,9 @@ bool blk_mq_dispatch_rq_list(struct blk_mq_hw_ctx *hct=
x, struct list_head *list)=0A=
 {=0A=
 	struct request_queue *q =3D hctx->queue;=0A=
 	struct request *rq;=0A=
-	LIST_HEAD(driver_list);=0A=
-	struct list_head *dptr;=0A=
 	int errors, queued, ret =3D BLK_MQ_RQ_QUEUE_OK;=0A=
 =0A=
 	/*=0A=
-	 * Start off with dptr being NULL, so we start the first request=0A=
-	 * immediately, even if we have more pending.=0A=
-	 */=0A=
-	dptr =3D NULL;=0A=
-=0A=
-	/*=0A=
 	 * Now process all the entries, sending them to the driver.=0A=
 	 */=0A=
 	errors =3D queued =3D 0;=0A=
@@ -1026,7 +1018,6 @@ bool blk_mq_dispatch_rq_list(struct blk_mq_hw_ctx *hc=
tx, struct list_head *list)=0A=
 		list_del_init(&rq->queuelist);=0A=
 =0A=
 		bd.rq =3D rq;=0A=
-		bd.list =3D dptr;=0A=
 =0A=
 		/*=0A=
 		 * Flag last if we have no more requests, or if we have more=0A=
@@ -1062,13 +1053,6 @@ bool blk_mq_dispatch_rq_list(struct blk_mq_hw_ctx *h=
ctx, struct list_head *list)=0A=
 =0A=
 		if (ret =3D=3D BLK_MQ_RQ_QUEUE_BUSY)=0A=
 			break;=0A=
-=0A=
-		/*=0A=
-		 * We've done the first request. If we have more than 1=0A=
-		 * left in the list, set dptr to defer issue.=0A=
-		 */=0A=
-		if (!dptr && list->next !=3D list->prev)=0A=
-			dptr =3D &driver_list;=0A=
 	}=0A=
 =0A=
 	hctx->dispatched[queued_to_index(queued)]++;=0A=
@@ -1451,7 +1435,6 @@ static void __blk_mq_try_issue_directly(struct reques=
t *rq, blk_qc_t *cookie,=0A=
 	struct request_queue *q =3D rq->q;=0A=
 	struct blk_mq_queue_data bd =3D {=0A=
 		.rq =3D rq,=0A=
-		.list =3D NULL,=0A=
 		.last =3D 1=0A=
 	};=0A=
 	struct blk_mq_hw_ctx *hctx;=0A=
diff --git a/include/linux/blk-mq.h b/include/linux/blk-mq.h=0A=
index ebeea36ff9cd..90af6a31458d 100644=0A=
--- a/include/linux/blk-mq.h=0A=
+++ b/include/linux/blk-mq.h=0A=
@@ -81,7 +81,6 @@ struct blk_mq_tag_set {=0A=
 =0A=
 struct blk_mq_queue_data {=0A=
 	struct request *rq;=0A=
-	struct list_head *list;=0A=
 	bool last;=0A=
 };=0A=
 =0A=
-- =0A=
2.12.0=0A=
=0A=

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

* Re: [PATCH] blk-mq: Remove blk_mq_queue_data.list
  2017-04-03 20:54 [PATCH] blk-mq: Remove blk_mq_queue_data.list Bart Van Assche
@ 2017-04-04  6:59 ` Christoph Hellwig
  2017-04-05 12:02 ` Sagi Grimberg
  2017-04-05 14:07 ` Jens Axboe
  2 siblings, 0 replies; 5+ messages in thread
From: Christoph Hellwig @ 2017-04-04  6:59 UTC (permalink / raw)
  To: Bart Van Assche; +Cc: Jens Axboe, linux-block

Looks good,

Reviewed-by: Christoph Hellwig <hch@lst.de>

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

* Re: [PATCH] blk-mq: Remove blk_mq_queue_data.list
  2017-04-03 20:54 [PATCH] blk-mq: Remove blk_mq_queue_data.list Bart Van Assche
  2017-04-04  6:59 ` Christoph Hellwig
@ 2017-04-05 12:02 ` Sagi Grimberg
  2017-04-05 14:07 ` Jens Axboe
  2 siblings, 0 replies; 5+ messages in thread
From: Sagi Grimberg @ 2017-04-05 12:02 UTC (permalink / raw)
  To: Bart Van Assche, Jens Axboe; +Cc: linux-block

Reviewed-by: Sagi Grimberg <sagi@grimberg.me>

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

* Re: [PATCH] blk-mq: Remove blk_mq_queue_data.list
  2017-04-03 20:54 [PATCH] blk-mq: Remove blk_mq_queue_data.list Bart Van Assche
  2017-04-04  6:59 ` Christoph Hellwig
  2017-04-05 12:02 ` Sagi Grimberg
@ 2017-04-05 14:07 ` Jens Axboe
  2017-04-05 15:27   ` Bart Van Assche
  2 siblings, 1 reply; 5+ messages in thread
From: Jens Axboe @ 2017-04-05 14:07 UTC (permalink / raw)
  To: Bart Van Assche; +Cc: linux-block

On Mon, Apr 03 2017, Bart Van Assche wrote:
> The block layer core sets blk_mq_queue_data.list but no block
> drivers read that member. Hence remove it and also the code that
> is used to set this member.

Looks fine to me, might as well kill it. Your patch came through mangled
here though, on both my private and corporate email account. Did
something change with the setup at your end? Would be great if you could
resend it.

-- 
Jens Axboe

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

* Re: [PATCH] blk-mq: Remove blk_mq_queue_data.list
  2017-04-05 14:07 ` Jens Axboe
@ 2017-04-05 15:27   ` Bart Van Assche
  0 siblings, 0 replies; 5+ messages in thread
From: Bart Van Assche @ 2017-04-05 15:27 UTC (permalink / raw)
  To: axboe; +Cc: linux-block

On Wed, 2017-04-05 at 08:07 -0600, Jens Axboe wrote:
> On Mon, Apr 03 2017, Bart Van Assche wrote:
> > The block layer core sets blk_mq_queue_data.list but no block
> > drivers read that member. Hence remove it and also the code that
> > is used to set this member.
>=20
> Looks fine to me, might as well kill it. Your patch came through mangled
> here though, on both my private and corporate email account. Did
> something change with the setup at your end? Would be great if you could
> resend it.

Hello Jens,

Sorry that the patch came through mangled. I send patch series with git
format-patch + git send-email. This patch was sent using git format-patch +
xclip + Thunderbird with the Toggle Word Wrap add-on configured not to wrap
long lines. This morning I tried to run git am on the copy of this patch
that I downloaded from my personal e-mail account and that worked fine.
Anyway, I will resend this patch with git send-email.

Bart.=

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

end of thread, other threads:[~2017-04-05 15:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-03 20:54 [PATCH] blk-mq: Remove blk_mq_queue_data.list Bart Van Assche
2017-04-04  6:59 ` Christoph Hellwig
2017-04-05 12:02 ` Sagi Grimberg
2017-04-05 14:07 ` Jens Axboe
2017-04-05 15:27   ` Bart Van Assche

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.