mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/1] null_blk: remove unused 'll_list' in 'nullb_cmd'
@ 2020-02-24 17:24 Dongli Zhang
  2020-02-24 17:43 ` dongli.zhang
  0 siblings, 1 reply; 2+ messages in thread
From: Dongli Zhang @ 2020-02-24 17:24 UTC (permalink / raw)
  To: linux-block; +Cc: axboe, linux-kernel

The 'll_list' is no longer used since commit 3c395a969acc ("null_blk: set a
separate timer for each command").

Signed-off-by: Dongli Zhang <dongli.zhang@oracle.com>
---
 drivers/block/null_blk.h      | 1 -
 drivers/block/null_blk_main.c | 1 -
 2 files changed, 2 deletions(-)

diff --git a/drivers/block/null_blk.h b/drivers/block/null_blk.h
index bc837862b767..34fec8814bf1 100644
--- a/drivers/block/null_blk.h
+++ b/drivers/block/null_blk.h
@@ -15,7 +15,6 @@
 
 struct nullb_cmd {
 	struct list_head list;
-	struct llist_node ll_list;
 	struct __call_single_data csd;
 	struct request *rq;
 	struct bio *bio;
diff --git a/drivers/block/null_blk_main.c b/drivers/block/null_blk_main.c
index 16510795e377..07301c72b102 100644
--- a/drivers/block/null_blk_main.c
+++ b/drivers/block/null_blk_main.c
@@ -1519,7 +1519,6 @@ static int setup_commands(struct nullb_queue *nq)
 	for (i = 0; i < nq->queue_depth; i++) {
 		cmd = &nq->cmds[i];
 		INIT_LIST_HEAD(&cmd->list);
-		cmd->ll_list.next = NULL;
 		cmd->tag = -1U;
 	}
 
-- 
2.17.1


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

* Re: [PATCH 1/1] null_blk: remove unused 'll_list' in 'nullb_cmd'
  2020-02-24 17:24 [PATCH 1/1] null_blk: remove unused 'll_list' in 'nullb_cmd' Dongli Zhang
@ 2020-02-24 17:43 ` dongli.zhang
  0 siblings, 0 replies; 2+ messages in thread
From: dongli.zhang @ 2020-02-24 17:43 UTC (permalink / raw)
  To: linux-block; +Cc: axboe, linux-kernel

nullb_cmd->list is no longer used as well. I would send v2.

Dongli Zhang

On 2/24/20 9:24 AM, Dongli Zhang wrote:
> The 'll_list' is no longer used since commit 3c395a969acc ("null_blk: set a
> separate timer for each command").
> 
> Signed-off-by: Dongli Zhang <dongli.zhang@oracle.com>
> ---
>  drivers/block/null_blk.h      | 1 -
>  drivers/block/null_blk_main.c | 1 -
>  2 files changed, 2 deletions(-)
> 
> diff --git a/drivers/block/null_blk.h b/drivers/block/null_blk.h
> index bc837862b767..34fec8814bf1 100644
> --- a/drivers/block/null_blk.h
> +++ b/drivers/block/null_blk.h
> @@ -15,7 +15,6 @@
>  
>  struct nullb_cmd {
>  	struct list_head list;
> -	struct llist_node ll_list;
>  	struct __call_single_data csd;
>  	struct request *rq;
>  	struct bio *bio;
> diff --git a/drivers/block/null_blk_main.c b/drivers/block/null_blk_main.c
> index 16510795e377..07301c72b102 100644
> --- a/drivers/block/null_blk_main.c
> +++ b/drivers/block/null_blk_main.c
> @@ -1519,7 +1519,6 @@ static int setup_commands(struct nullb_queue *nq)
>  	for (i = 0; i < nq->queue_depth; i++) {
>  		cmd = &nq->cmds[i];
>  		INIT_LIST_HEAD(&cmd->list);
> -		cmd->ll_list.next = NULL;
>  		cmd->tag = -1U;
>  	}
>  
> 

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

end of thread, other threads:[~2020-02-24 17:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-24 17:24 [PATCH 1/1] null_blk: remove unused 'll_list' in 'nullb_cmd' Dongli Zhang
2020-02-24 17:43 ` dongli.zhang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®