linux-nvme.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] nvme-pci : redundancies in nvme_alloc_queue and nvme_init_queue
@ 2023-05-21  2:44 Irvin Cote
  0 siblings, 0 replies; 10+ messages in thread
From: Irvin Cote @ 2023-05-21  2:44 UTC (permalink / raw)
  To: hch; +Cc: kbusch, axboe, sagi, linux-nvme, Irvin Cote

cq_head cq_phase and q_db are getting set in nvme_alloc_queue
and in nvme_init_queue, make it so that they are only set once in
nvme_init_queue.

Signed-off-by: Irvin Cote <irvincoteg@gmail.com>
---
 drivers/nvme/host/pci.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c
index 32244582fdb0..49ae26980a0f 100644
--- a/drivers/nvme/host/pci.c
+++ b/drivers/nvme/host/pci.c
@@ -1533,9 +1533,6 @@ static int nvme_alloc_queue(struct nvme_dev *dev, int qid, int depth)
 	nvmeq->dev = dev;
 	spin_lock_init(&nvmeq->sq_lock);
 	spin_lock_init(&nvmeq->cq_poll_lock);
-	nvmeq->cq_head = 0;
-	nvmeq->cq_phase = 1;
-	nvmeq->q_db = &dev->dbs[qid * 2 * dev->db_stride];
 	nvmeq->qid = qid;
 	dev->ctrl.queue_count++;
 
-- 
2.39.2



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

* Re: [PATCH] nvme-pci : redundancies in nvme_alloc_queue and nvme_init_queue
  2023-05-25 15:55     ` irvin cote
@ 2023-05-25 18:01       ` Keith Busch
  0 siblings, 0 replies; 10+ messages in thread
From: Keith Busch @ 2023-05-25 18:01 UTC (permalink / raw)
  To: irvin cote; +Cc: hch, axboe, sagi, linux-nvme

Thanks, applied for nvme-6.5.


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

* Re: [PATCH] nvme-pci : redundancies in nvme_alloc_queue and nvme_init_queue
  2023-05-25 15:36   ` Keith Busch
@ 2023-05-25 15:55     ` irvin cote
  2023-05-25 18:01       ` Keith Busch
  0 siblings, 1 reply; 10+ messages in thread
From: irvin cote @ 2023-05-25 15:55 UTC (permalink / raw)
  To: Keith Busch; +Cc: hch, axboe, sagi, linux-nvme

I was just re-executing the same initial git send-mail command.
In the end I just changed the subject and it worked, maybe the subject
was used as a reply identifier

On Thu, 25 May 2023 at 12:36, Keith Busch <kbusch@kernel.org> wrote:
>
> On Sat, May 20, 2023 at 11:47:37PM -0300, irvin cote wrote:
> > I'm trying to resend the patch but somehow all the new attempts seem
> > to bind to this thread...
>
> It's not really a big deal to me that it's continuing the previous
> thread, but how are you sending your patches? If you just use 'git
> send-email' without specifying any reply identifier, that should start a
> new thread.


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

* Re: [PATCH] nvme-pci : redundancies in nvme_alloc_queue and nvme_init_queue
  2023-05-21  2:47 ` irvin cote
@ 2023-05-25 15:36   ` Keith Busch
  2023-05-25 15:55     ` irvin cote
  0 siblings, 1 reply; 10+ messages in thread
From: Keith Busch @ 2023-05-25 15:36 UTC (permalink / raw)
  To: irvin cote; +Cc: hch, axboe, sagi, linux-nvme

On Sat, May 20, 2023 at 11:47:37PM -0300, irvin cote wrote:
> I'm trying to resend the patch but somehow all the new attempts seem
> to bind to this thread...

It's not really a big deal to me that it's continuing the previous
thread, but how are you sending your patches? If you just use 'git
send-email' without specifying any reply identifier, that should start a
new thread.


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

* [PATCH] nvme-pci: redundancies in nvme_alloc_queue and nvme_init_queue
@ 2023-05-21  2:51 Irvin Cote
  0 siblings, 0 replies; 10+ messages in thread
From: Irvin Cote @ 2023-05-21  2:51 UTC (permalink / raw)
  To: hch; +Cc: kbusch, axboe, sagi, linux-nvme, Irvin Cote

cq_head cq_phase and q_db are getting set in nvme_alloc_queue
and in nvme_init_queue, make it so that they are only set once in
nvme_init_queue.

Signed-off-by: Irvin Cote <irvincoteg@gmail.com>
---
 drivers/nvme/host/pci.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c
index 32244582fdb0..49ae26980a0f 100644
--- a/drivers/nvme/host/pci.c
+++ b/drivers/nvme/host/pci.c
@@ -1533,9 +1533,6 @@ static int nvme_alloc_queue(struct nvme_dev *dev, int qid, int depth)
 	nvmeq->dev = dev;
 	spin_lock_init(&nvmeq->sq_lock);
 	spin_lock_init(&nvmeq->cq_poll_lock);
-	nvmeq->cq_head = 0;
-	nvmeq->cq_phase = 1;
-	nvmeq->q_db = &dev->dbs[qid * 2 * dev->db_stride];
 	nvmeq->qid = qid;
 	dev->ctrl.queue_count++;
 
-- 
2.39.2



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

* Re: [PATCH] nvme-pci : redundancies in nvme_alloc_queue and nvme_init_queue
  2023-05-21  2:46 [PATCH] nvme-pci : " Irvin Cote
@ 2023-05-21  2:47 ` irvin cote
  2023-05-25 15:36   ` Keith Busch
  0 siblings, 1 reply; 10+ messages in thread
From: irvin cote @ 2023-05-21  2:47 UTC (permalink / raw)
  To: hch; +Cc: kbusch, axboe, sagi, linux-nvme

I'm trying to resend the patch but somehow all the new attempts seem
to bind to this thread...

On Sat, 20 May 2023 at 23:46, Irvin Cote <irvincoteg@gmail.com> wrote:
>
> cq_head cq_phase and q_db are getting set in nvme_alloc_queue
> and in nvme_init_queue, make it so that they are only set once in
> nvme_init_queue.
>
> Signed-off-by: Irvin Cote <irvincoteg@gmail.com>
> ---
>  drivers/nvme/host/pci.c | 3 ---
>  1 file changed, 3 deletions(-)
>
> diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c
> index 32244582fdb0..49ae26980a0f 100644
> --- a/drivers/nvme/host/pci.c
> +++ b/drivers/nvme/host/pci.c
> @@ -1533,9 +1533,6 @@ static int nvme_alloc_queue(struct nvme_dev *dev, int qid, int depth)
>         nvmeq->dev = dev;
>         spin_lock_init(&nvmeq->sq_lock);
>         spin_lock_init(&nvmeq->cq_poll_lock);
> -       nvmeq->cq_head = 0;
> -       nvmeq->cq_phase = 1;
> -       nvmeq->q_db = &dev->dbs[qid * 2 * dev->db_stride];
>         nvmeq->qid = qid;
>         dev->ctrl.queue_count++;
>
> --
> 2.39.2
>


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

* [PATCH] nvme-pci : redundancies in nvme_alloc_queue and nvme_init_queue
@ 2023-05-21  2:46 Irvin Cote
  2023-05-21  2:47 ` irvin cote
  0 siblings, 1 reply; 10+ messages in thread
From: Irvin Cote @ 2023-05-21  2:46 UTC (permalink / raw)
  To: hch; +Cc: kbusch, axboe, sagi, linux-nvme, Irvin Cote

cq_head cq_phase and q_db are getting set in nvme_alloc_queue
and in nvme_init_queue, make it so that they are only set once in
nvme_init_queue.

Signed-off-by: Irvin Cote <irvincoteg@gmail.com>
---
 drivers/nvme/host/pci.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c
index 32244582fdb0..49ae26980a0f 100644
--- a/drivers/nvme/host/pci.c
+++ b/drivers/nvme/host/pci.c
@@ -1533,9 +1533,6 @@ static int nvme_alloc_queue(struct nvme_dev *dev, int qid, int depth)
 	nvmeq->dev = dev;
 	spin_lock_init(&nvmeq->sq_lock);
 	spin_lock_init(&nvmeq->cq_poll_lock);
-	nvmeq->cq_head = 0;
-	nvmeq->cq_phase = 1;
-	nvmeq->q_db = &dev->dbs[qid * 2 * dev->db_stride];
 	nvmeq->qid = qid;
 	dev->ctrl.queue_count++;
 
-- 
2.39.2



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

* Re: [PATCH] nvme-pci : redundancies in nvme_alloc_queue and nvme_init_queue
  2023-05-21  1:48 ` Jens Axboe
@ 2023-05-21  2:36   ` irvin cote
  0 siblings, 0 replies; 10+ messages in thread
From: irvin cote @ 2023-05-21  2:36 UTC (permalink / raw)
  To: Jens Axboe; +Cc: hch, kbusch, sagi, linux-nvme

Hi, I am really confused I had written one and apparently it didn't go
through, my apologies.
I will resend it

On Sat, 20 May 2023 at 22:48, Jens Axboe <axboe@kernel.dk> wrote:
>
> On 5/20/23 6:02 PM, Irvin Cote wrote:
> > Signed-off-by: Irvin Cote <irvincoteg@gmail.com>
> > ---
> >  drivers/nvme/host/pci.c | 3 ---
> >  1 file changed, 3 deletions(-)
> >
> > diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c
> > index 32244582fdb0..49ae26980a0f 100644
> > --- a/drivers/nvme/host/pci.c
> > +++ b/drivers/nvme/host/pci.c
> > @@ -1533,9 +1533,6 @@ static int nvme_alloc_queue(struct nvme_dev *dev, int qid, int depth)
> >       nvmeq->dev = dev;
> >       spin_lock_init(&nvmeq->sq_lock);
> >       spin_lock_init(&nvmeq->cq_poll_lock);
> > -     nvmeq->cq_head = 0;
> > -     nvmeq->cq_phase = 1;
> > -     nvmeq->q_db = &dev->dbs[qid * 2 * dev->db_stride];
> >       nvmeq->qid = qid;
> >       dev->ctrl.queue_count++;
>
> Please put an actual commit message in here, any commit should have
> an explanation of WHY the change is being made. Your subject line
> is NOT enough, detail exactly why this is redundant.
>
> From a quick look the patch does look fine, but I'm not going to
> ack a patch that doesn't have a good commit message.
>
> --
> Jens Axboe
>
>


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

* Re: [PATCH] nvme-pci : redundancies in nvme_alloc_queue and nvme_init_queue
  2023-05-21  0:02 Irvin Cote
@ 2023-05-21  1:48 ` Jens Axboe
  2023-05-21  2:36   ` irvin cote
  0 siblings, 1 reply; 10+ messages in thread
From: Jens Axboe @ 2023-05-21  1:48 UTC (permalink / raw)
  To: Irvin Cote, hch; +Cc: kbusch, sagi, linux-nvme

On 5/20/23 6:02 PM, Irvin Cote wrote:
> Signed-off-by: Irvin Cote <irvincoteg@gmail.com>
> ---
>  drivers/nvme/host/pci.c | 3 ---
>  1 file changed, 3 deletions(-)
> 
> diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c
> index 32244582fdb0..49ae26980a0f 100644
> --- a/drivers/nvme/host/pci.c
> +++ b/drivers/nvme/host/pci.c
> @@ -1533,9 +1533,6 @@ static int nvme_alloc_queue(struct nvme_dev *dev, int qid, int depth)
>  	nvmeq->dev = dev;
>  	spin_lock_init(&nvmeq->sq_lock);
>  	spin_lock_init(&nvmeq->cq_poll_lock);
> -	nvmeq->cq_head = 0;
> -	nvmeq->cq_phase = 1;
> -	nvmeq->q_db = &dev->dbs[qid * 2 * dev->db_stride];
>  	nvmeq->qid = qid;
>  	dev->ctrl.queue_count++;

Please put an actual commit message in here, any commit should have
an explanation of WHY the change is being made. Your subject line
is NOT enough, detail exactly why this is redundant.

From a quick look the patch does look fine, but I'm not going to
ack a patch that doesn't have a good commit message.

-- 
Jens Axboe




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

* [PATCH] nvme-pci : redundancies in nvme_alloc_queue and nvme_init_queue
@ 2023-05-21  0:02 Irvin Cote
  2023-05-21  1:48 ` Jens Axboe
  0 siblings, 1 reply; 10+ messages in thread
From: Irvin Cote @ 2023-05-21  0:02 UTC (permalink / raw)
  To: hch; +Cc: kbusch, axboe, sagi, linux-nvme, Irvin Cote

Signed-off-by: Irvin Cote <irvincoteg@gmail.com>
---
 drivers/nvme/host/pci.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c
index 32244582fdb0..49ae26980a0f 100644
--- a/drivers/nvme/host/pci.c
+++ b/drivers/nvme/host/pci.c
@@ -1533,9 +1533,6 @@ static int nvme_alloc_queue(struct nvme_dev *dev, int qid, int depth)
 	nvmeq->dev = dev;
 	spin_lock_init(&nvmeq->sq_lock);
 	spin_lock_init(&nvmeq->cq_poll_lock);
-	nvmeq->cq_head = 0;
-	nvmeq->cq_phase = 1;
-	nvmeq->q_db = &dev->dbs[qid * 2 * dev->db_stride];
 	nvmeq->qid = qid;
 	dev->ctrl.queue_count++;
 
-- 
2.39.2



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

end of thread, other threads:[~2023-05-25 18:02 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-21  2:44 [PATCH] nvme-pci : redundancies in nvme_alloc_queue and nvme_init_queue Irvin Cote
  -- strict thread matches above, loose matches on Subject: below --
2023-05-21  2:51 [PATCH] nvme-pci: " Irvin Cote
2023-05-21  2:46 [PATCH] nvme-pci : " Irvin Cote
2023-05-21  2:47 ` irvin cote
2023-05-25 15:36   ` Keith Busch
2023-05-25 15:55     ` irvin cote
2023-05-25 18:01       ` Keith Busch
2023-05-21  0:02 Irvin Cote
2023-05-21  1:48 ` Jens Axboe
2023-05-21  2:36   ` irvin cote

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