> -----Original Message----- > From: Ming Lei [mailto:ming.lei@xxxxxxxxxx] > Sent: Monday, February 05, 2018 9:21 AM > To: Jens Axboe <axboe@xxxxxxxxx>; linux-block@xxxxxxxxxxxxxxx; Christoph > Hellwig <hch@xxxxxxxxxxxxx>; Mike Snitzer <snitzer@xxxxxxxxxx> > Cc: linux-scsi@xxxxxxxxxxxxxxx; Hannes Reinecke <hare@xxxxxxx>; Arun Easi > <arun.easi@xxxxxxxxxx>; Omar Sandoval <osandov@xxxxxx>; Martin K . > Petersen <martin.petersen@xxxxxxxxxx>; James Bottomley > <james.bottomley@xxxxxxxxxxxxxxxxxxxxx>; Christoph Hellwig <hch@xxxxxx>; > Don Brace <don.brace@xxxxxxxxxxxxx>; Kashyap Desai > <kashyap.desai@xxxxxxxxxxxx>; Peter Rivera <peter.rivera@xxxxxxxxxxxx>; > Paolo Bonzini <pbonzini@xxxxxxxxxx>; Laurence Oberman > <loberman@xxxxxxxxxx>; Ming Lei <ming.lei@xxxxxxxxxx> > Subject: [PATCH V2 7/8] scsi: hpsa: call hpsa_hba_inquiry() after adding host > > EXTERNAL EMAIL > > > So that we can decide the default reply queue by the map created > during adding host. > > Cc: Hannes Reinecke <hare@xxxxxxx> > Cc: Arun Easi <arun.easi@xxxxxxxxxx> > Cc: Omar Sandoval <osandov@xxxxxx>, > Cc: "Martin K. Petersen" <martin.petersen@xxxxxxxxxx>, > Cc: James Bottomley <james.bottomley@xxxxxxxxxxxxxxxxxxxxx>, > Cc: Christoph Hellwig <hch@xxxxxx>, > Cc: Don Brace <don.brace@xxxxxxxxxxxxx> > Cc: Kashyap Desai <kashyap.desai@xxxxxxxxxxxx> > Cc: Peter Rivera <peter.rivera@xxxxxxxxxxxx> > Cc: Paolo Bonzini <pbonzini@xxxxxxxxxx> > Cc: Mike Snitzer <snitzer@xxxxxxxxxx> > Tested-by: Laurence Oberman <loberman@xxxxxxxxxx> > Signed-off-by: Ming Lei <ming.lei@xxxxxxxxxx> > --- > drivers/scsi/hpsa.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c > index 287e5eb0723f..443eabf63a9f 100644 > --- a/drivers/scsi/hpsa.c > +++ b/drivers/scsi/hpsa.c > @@ -8691,12 +8691,9 @@ static int hpsa_init_one(struct pci_dev *pdev, const > struct pci_device_id *ent) > /* Disable discovery polling.*/ > h->discovery_polling = 0; > > - > /* Turn the interrupts on so we can service requests */ > h->access.set_intr_mask(h, HPSA_INTR_ON); > > - hpsa_hba_inquiry(h); > - > h->lastlogicals = kzalloc(sizeof(*(h->lastlogicals)), GFP_KERNEL); > if (!h->lastlogicals) > dev_info(&h->pdev->dev, > @@ -8707,6 +8704,8 @@ static int hpsa_init_one(struct pci_dev *pdev, const > struct pci_device_id *ent) > if (rc) > goto clean7; /* perf, sg, cmd, irq, shost, pci, lu, aer/h */ > > + hpsa_hba_inquiry(h); > + > /* Monitor the controller for firmware lockups */ > h->heartbeat_sample_interval = HEARTBEAT_SAMPLE_INTERVAL; > INIT_DELAYED_WORK(&h->monitor_ctlr_work, hpsa_monitor_ctlr_worker); > -- > 2.9.5 Tested-by: Don Brace <don.brace@xxxxxxxxxxxxx> P441, P431, P830i, H240 Acked-by: Don Brace <don.brace@xxxxxxxxxxxxx>