[PATCH 3/3] hpsa: add 'ctlr_num' sysfs attribute

2016-11-17 Thread Hannes Reinecke
Add a sysfs attribute 'ctlr_num' holding the current HPSA controller number. This is required to construct compability 'cciss' links. Signed-off-by: Hannes Reinecke --- drivers/scsi/hpsa.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.

[PATCH 1/3] hpsa: use correct DID_NO_CONNECT hostbyte

2016-11-17 Thread Hannes Reinecke
NOT_READY is a sense key, not a legit scsi hostbyte value. Use DID_NO_CONNECT instead. Signed-off-by: Hannes Reinecke --- drivers/scsi/hpsa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index ea64c01..488e17c 100644 --- a/drivers/

[PATCH 2/3] hpsa: fallback to use legacy REPORT PHYS command

2016-11-17 Thread Hannes Reinecke
Older SmartArray controller do not support the extended REPORT PHYS command, so fallback to use the legacy version here. Signed-off-by: Hannes Reinecke --- drivers/scsi/hpsa.c | 28 ++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/hpsa.c b/

[PATCH 0/3] hpsa compatility fixes

2016-11-17 Thread Hannes Reinecke
Hi all, this is a patchset to get hpsa working on older controllers. Most notably older controller do not support the extended REPORT PHYS command, so we need to fallback to the legacy version here. I've also added a new sysfs HBA attribute 'ctlr_num', which displays the current controller number.

[PATCH] qla4xxx: switch to pci_alloc_irq_vectors

2016-11-17 Thread Christoph Hellwig
And simplify the MSI-X logic in general - just request the two vectors directly instead of going through an indirection table. Signed-off-by: Christoph Hellwig --- drivers/scsi/qla4xxx/ql4_def.h | 18 + drivers/scsi/qla4xxx/ql4_glbl.h | 1 - drivers/scsi/qla4xxx/ql4_isr.c | 25 +--

[PATCH] pmcraid: switch to pci_alloc_irq_vectors

2016-11-17 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- drivers/scsi/pmcraid.c | 92 ++ drivers/scsi/pmcraid.h | 1 - 2 files changed, 41 insertions(+), 52 deletions(-) diff --git a/drivers/scsi/pmcraid.c b/drivers/scsi/pmcraid.c index 68a5c34..b517642 100644 --- a/

[PATCH] isci: switch to pci_alloc_irq_vectors

2016-11-17 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- drivers/scsi/isci/host.h | 1 - drivers/scsi/isci/init.c | 21 + 2 files changed, 9 insertions(+), 13 deletions(-) diff --git a/drivers/scsi/isci/host.h b/drivers/scsi/isci/host.h index 22a9bb1..b353992 100644 --- a/drivers/scsi/isci/host

[PATCH] vmw_pvscsi: switch to pci_alloc_irq_vectors

2016-11-17 Thread Christoph Hellwig
And simply the interrupt handler by splitting the INTx case that needs to deal with shared interrupts into a separate helper. Signed-off-by: Christoph Hellwig --- drivers/scsi/vmw_pvscsi.c | 104 +- drivers/scsi/vmw_pvscsi.h | 5 --- 2 files changed,

Re: [RFC PATCH] scsi: libsas: fix WARN on device removal

2016-11-17 Thread Dan Williams
On Thu, Nov 17, 2016 at 7:23 AM, John Garry wrote: > On 11/11/2016 08:49, wangyijing wrote: > > I have not seen the flutter issue. I am just trying to solve the > horrible WARN dump. > However I do understand that there may be a issue related to how we > queue the events; there

Re: [PATCH] fnic: remove a pointless test

2016-11-17 Thread Martin K. Petersen
> "Tomas" == Tomas Henzl writes: Tomas> Martin, another (better) patch "fnic: Correcting rport check Tomas> location in fnic_queuecommand_lck" has been added to Tomas> 4.10/scsi-queue. Tomas> Please drop this one. Done! -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe

Re: [RFC PATCH] scsi: libsas: fix WARN on device removal

2016-11-17 Thread Martin K. Petersen
> "John" == John Garry writes: John> @Maintainers, would you be willing to accept this patch as an John> interim fix for the dastardly WARN while we try to fix the flutter John> issue? I'll defer to James since I don't have much libsas experience. -- Martin K. Petersen Oracle Linux En

Re: [PATCH] mptfusion: Fix printk continuations

2016-11-17 Thread Martin K. Petersen
> "Helge" == Helge Deller writes: Helge> Fix the printk continuations when running the mptfusion driver. Helge> This patch brings the capabilities into one single syslog line Helge> again: Helge>mptbase: ioc1: Initiating bringup ioc1: LSI53C1030 B2: Helge>Capabilities={Initiator,Targe

Re: [PATCH] mpt3sas: Fix for SATA drive in blocked state, after diag reset while ATA Passthrough command is outstanding.

2016-11-17 Thread Martin K. Petersen
> "Suganath" == Suganath Prabu S > writes: Suganath> While issuing any ATA Pass-through command to Firmware, driver Suganath> will block the device, it will unblock the device only if that Suganath> IO completes through ISR path. But if in-between any host Suganath> reset occurs then dri

Re: [PATCH] aacraid: switch to pci_alloc_irq_vectors

2016-11-17 Thread Martin K. Petersen
> "Hannes" == Hannes Reinecke writes: Hannes> Use pci_alloc_irq_vectors and drop the hand-crafted interrupt Hannes> affinity routines. Applied to 4.10/scsi-queue. -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in

Re: [PATCH] hpsa: use bus '3' for legacy HBA devices

2016-11-17 Thread Martin K. Petersen
> "Hannes" == Hannes Reinecke writes: Hannes> Older controllers use SCSI target id '0' for the first internal Hannes> disk. As the controllers are now placed on the same bus than the Hannes> internal disks this leads to a clash with the SCSI target id of Hannes> controller. This patch checks

Re: [PATCH v2] libfc: fix seconds_since_last_reset miscalculation

2016-11-17 Thread Martin K. Petersen
> "Johannes" == Johannes Thumshirn writes: Johannes> Commit 540eb1eef 'scsi: libfc: fix seconds_since_last_reset Johannes> calculation' removed the use of 'struct timespec' from Johannes> fc_get_host_stats(). This broke the output of 'fcoeadm -s' Johannes> after kernel 4.8-rc1. Applied to 4.

[Bug 188061] New: On quad port QLE2564 can't add in target only 2 ports

2016-11-17 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=188061 Bug ID: 188061 Summary: On quad port QLE2564 can't add in target only 2 ports Product: SCSI Drivers Version: 2.5 Kernel Version: 4.8.6-201.fc24.x86_64 Hardware: x86-64 OS:

Re: [PATCH 04/14] cxlflash: Avoid command room violation

2016-11-17 Thread Uma Krishnan
Thanks for catching this Matt. Looking into this. Will send out a V2. On 11/17/2016 1:36 PM, Matthew R. Ochs wrote: Hi Uma, I do see a potential hang issue with this patch. See my comments below. -matt On Nov 15, 2016, at 5:14 PM, Uma Krishnan wrote: During test, a command room violation

RE: [PATCH] hpsa: use bus '3' for legacy HBA devices

2016-11-17 Thread Don Brace
> -Original Message- > From: Hannes Reinecke [mailto:h...@suse.de] > Sent: Thursday, November 17, 2016 5:16 AM > To: Don Brace > Cc: Martin K. Petersen; Christoph Hellwig; James Bottomley; Johannes > Thumshirn; Jack Suter; linux-scsi@vger.kernel.org; Hannes Reinecke; Hannes > Reinecke > Sub

Re: "hpsa: Change SAS transport devices to bus 0." commit breaks hpacucli on old controller firmware

2016-11-17 Thread Jack Suter
It appears on bus 3 for both hpsa and the sas transport for me. I can test the patch on a few controllers with newer firmware too if you'd like. # lsscsi [0:1:0:0]diskHP LOGICAL VOLUME 1.66 /dev/sda [0:1:0:1]diskHP LOGICAL VOLUME 1.66 /dev/sdb [0:1:0:2]disk

[PATCH] mptfusion: Fix printk continuations

2016-11-17 Thread Helge Deller
Fix the printk continuations when running the mptfusion driver. This patch brings the capabilities into one single syslog line again: mptbase: ioc1: Initiating bringup ioc1: LSI53C1030 B2: Capabilities={Initiator,Target} scsi host3: ioc1: LSI53C1030 B2, FwRev=01032341h, Ports=1, MaxQ=255,

Re: "hpsa: Change SAS transport devices to bus 0." commit breaks hpacucli on old controller firmware

2016-11-17 Thread Jack Suter
Thanks from me as well for the patch. I've tested it on the problematic controller and it appears to be working. The hpsa driver isn't throwing any errors and hpacucli works as expected. Cheers, Jack Suter On Thu, Nov 17, 2016, at 06:17, Hannes Reinecke wrote: > On 11/16/2016 05:09 PM, brace77..

Re: Ordering problems with 3ware controller

2016-11-17 Thread Donald Buczek
On 17.11.2016 15:55, Paul Menzel wrote: Dear Linux folks, On 11/16/16 22:24, Donald Buczek wrote: The relevant commit is 703b5fa which includes The commit message summary is *fs/dcache.c: Save one 32-bit multiply in dcache lookup*. static inline unsigned long end_name_hash(unsigned l

Re: [PATCH 04/14] cxlflash: Avoid command room violation

2016-11-17 Thread Matthew R. Ochs
Hi Uma, I do see a potential hang issue with this patch. See my comments below. -matt > On Nov 15, 2016, at 5:14 PM, Uma Krishnan wrote: > > During test, a command room violation interrupt is occasionally seen > for the master context when the CXL flash devices are stressed. > > After study

Re: [PATCH v3] ufs: introduce UFSHCD_QUIRK_BROKEN_REQ_LIST_CLR quirk

2016-11-17 Thread Subhash Jadavani
On 2016-11-17 05:52, Kiwoong Kim wrote: On 2016-11-15 21:03, Kiwoong Kim wrote: > Some UFS host controllers may clear a transfer request slot > by setting an associated bit in UTRLCLR/UTMRLCLR to 1, not 0. > That's opposite to what UFS spec describes. > This was the comment on v2: "As Martin men

Re: [PATCH 03/14] cxlflash: Improve context_reset() logic

2016-11-17 Thread Matthew R. Ochs
> On Nov 15, 2016, at 5:14 PM, Uma Krishnan wrote: > > Currently, the context reset routine waits for command room to > be available before sending the reset request. Per review of the > SISLite specification and clarifications from the CXL Flash AFU > designers, this wait is unnecessary. The res

Re: [PATCH 02/14] cxlflash: Fix crash in cxlflash_restore_luntable()

2016-11-17 Thread Matthew R. Ochs
> On Nov 15, 2016, at 5:14 PM, Uma Krishnan wrote: > > During test, the following crash was observed: > > [34538.981505] Faulting instruction address: 0xd7c9c870 > cpu 0x9: Vector: 300 (Data Access) at [c007f1e8f590] >pc: d7c9c870: cxlflash_restore_luntable+0x70/0x1d0 [cx

Re: [PATCH 01/14] cxlflash: Set sg_tablesize to 1 instead of SG_NONE

2016-11-17 Thread Matthew R. Ochs
> On Nov 15, 2016, at 5:13 PM, Uma Krishnan wrote: > > The following Oops is encountered when blk_mq is enabled with the > cxlflash driver: > > [ 2960.817172] Oops: Kernel access of bad area, sig: 11 [#5] > [ 2960.817309] NIP __blk_mq_run_hw_queue+0x278/0x4c0 > [ 2960.817313] LR __blk_mq_run_hw

RE: [PATCH v3] ufs: introduce UFSHCD_QUIRK_BROKEN_REQ_LIST_CLR quirk

2016-11-17 Thread Kiwoong Kim
> On 2016-11-15 21:03, Kiwoong Kim wrote: > > Some UFS host controllers may clear a transfer request slot > > by setting an associated bit in UTRLCLR/UTMRLCLR to 1, not 0. > > That's opposite to what UFS spec describes. > > > > This was the comment on v2: "As Martin mentioned in other email, pleas

Re: [RFC PATCH] scsi: libsas: fix WARN on device removal

2016-11-17 Thread John Garry
On 11/11/2016 08:49, wangyijing wrote: I have not seen the flutter issue. I am just trying to solve the horrible WARN dump. However I do understand that there may be a issue related to how we queue the events; there was a recent attempt to fix this, but it came to nothing: https://www.spinics.n

[PATCH RESEND v4 00/15] Convert FibreChannel bsg code to use bsg-lib

2016-11-17 Thread Johannes Thumshirn
This series converts the current bsg usage in the FibreChannel drivers over to use bsg-lib. SAS will follow once FC is in a good enough shape. I did take some inspiration from a similar patchset from Mike Christie dating back to 2011 but it's not a 1:1 copy. Patch 15/16 is heavily based on his ser

Re: [PATCH v2] libfc: fix seconds_since_last_reset miscalculation

2016-11-17 Thread Bart Van Assche
On 11/17/2016 04:39 AM, Johannes Thumshirn wrote: Commit 540eb1eef 'scsi: libfc: fix seconds_since_last_reset calculation' removed the use of 'struct timespec' from fc_get_host_stats(). This broke the output of 'fcoeadm -s' after kernel 4.8-rc1. Reviewed-by: Bart Van Assche -- To unsubscribe f

[PATCH RESEND v4 15/15] block: unexport bsg_softirq_done() again

2016-11-17 Thread Johannes Thumshirn
Unexport bsg_softirq_done() again, we don't need it outside of bsg-lib.c anymore now that scsi_transport_fc is a pure bsg-lib client. Signed-off-by: Johannes Thumshirn Reviewed-by: Hannes Reinecke --- block/bsg-lib.c | 3 +-- include/linux/bsg-lib.h | 1 - 2 files changed, 1 insertion(+

[PATCH RESEND v4 08/15] block: add reference counting for struct bsg_job

2016-11-17 Thread Johannes Thumshirn
Add reference counting to 'struct bsg_job' so we can implement a reuqest timeout handler for bsg_jobs, which is needed for Fibre Channel. Signed-off-by: Johannes Thumshirn Reviewed-by: Hannes Reinecke --- block/bsg-lib.c | 7 +-- include/linux/bsg-lib.h | 2 ++ 2 files changed, 7 in

[PATCH 2/2] lpfc: use PCI-layer irq affinity handling

2016-11-17 Thread Christoph Hellwig
Use the PCI_IRQ_AFFINITY flags to pci_alloc_irq_vectors to get automatic assignment of irq affinity from the core PCI and interrupt handling code. For blk-mq we just have to wire it up to the default map_queues handler, and for the non blk-mq case we keep a local copy of the map_queues helper, whi

Re: Ordering problems with 3ware controller

2016-11-17 Thread Paul Menzel
Dear Linux folks, On 11/16/16 22:24, Donald Buczek wrote: On 10.11.2016 14:59, Martin K. Petersen wrote: "Paul" == Paul Menzel writes: Linux does not provide device discovery ordering guarantees. You need to fix your scripts to use UUIDs, filesystem labels, or DM devices to get stable nami

[PATCH v2] libfc: fix seconds_since_last_reset miscalculation

2016-11-17 Thread Johannes Thumshirn
Commit 540eb1eef 'scsi: libfc: fix seconds_since_last_reset calculation' removed the use of 'struct timespec' from fc_get_host_stats(). This broke the output of 'fcoeadm -s' after kernel 4.8-rc1. Fixes: 540eb1eef ('scsi: libfc: fix seconds_since_last_reset calculation') Signed-off-by: Johannes Thu

[PATCH 1/2] lpfc: use pci_irq_alloc_vectors and pci_irq_free_vectors

2016-11-17 Thread Christoph Hellwig
This avoids having to store the msix_entries array and simpliefies the shutdown and cleanup path a lot. Signed-off-by: Christoph Hellwig --- drivers/scsi/lpfc/lpfc.h | 2 - drivers/scsi/lpfc/lpfc_init.c | 240 ++ drivers/scsi/lpfc/lpfc_sli4.h | 1

use PCI layer IRQ affinity in lpfc

2016-11-17 Thread Christoph Hellwig
This series has two patches: the first is a simple conversion of lpfc to use pci_alloc_irq_vectors. The second is more interesting, and makes use of the PCI_IRQ_AFFINITY option to use the core interrupt affinity assignment that takes nodes into account and can be easily queried. It also ensures w

Re: [PATCH] fnic: remove a pointless test

2016-11-17 Thread Tomas Henzl
On 1.11.2016 17:40, Tomas Henzl wrote: > rport can't be null here, it would have failed already in > fc_remote_port_chkready > > Signed-off-by: Tomas Henzl Martin, another (better) patch "fnic: Correcting rport check location in fnic_queuecommand_lck" has been added to 4.10/scsi-queue. Please

Re: [PATCH v2] libfc: fix seconds_since_last_reset miscalculation

2016-11-17 Thread Arnd Bergmann
On Thursday, November 17, 2016 1:39:27 PM CET Johannes Thumshirn wrote: > Commit 540eb1eef 'scsi: libfc: fix seconds_since_last_reset calculation' > removed the use of 'struct timespec' from fc_get_host_stats(). This broke the > output of 'fcoeadm -s' after kernel 4.8-rc1. > > Fixes: 540eb1eef ('s

Re: [PATCH v4 07/15] scsi: fc: implement kref backed reference counting

2016-11-17 Thread Hannes Reinecke
On 11/17/2016 10:31 AM, Johannes Thumshirn wrote: > Implement kref backed reference counting instead of rolling our own. This > elimnates the need of the following fields in 'struct fc_bsg_job': > * ref_cnt > * state_flags > * job_lock > bringing us close to unification of 'struct fc_bsg_job' and '

Re: "hpsa: Change SAS transport devices to bus 0." commit breaks hpacucli on old controller firmware

2016-11-17 Thread Hannes Reinecke
On 11/16/2016 05:09 PM, brace77...@gmail.com wrote: > On 10/31/2016 02:06 PM, Don Brace wrote: >> On 10/27/2016 01:15 PM, Jack Suter wrote: >>> Hi there, >>> >>> Commit "hpsa: Change SAS transport devices to bus 0." >>> (09371d623c9c3dc6ed7f53ec8ab01d25f0c6c697) breaks the hpacucli utility >>> for

[PATCH] hpsa: use bus '3' for legacy HBA devices

2016-11-17 Thread Hannes Reinecke
Older controllers use SCSI target id '0' for the first internal disk. As the controllers are now placed on the same bus than the internal disks this leads to a clash with the SCSI target id of controller. This patch checks the SCSI revision, and moves older controller to bus '3' to be compatible wi

[PATCH] mpt3sas: Fix for SATA drive in blocked state, after diag reset while ATA Passthrough command is outstanding.

2016-11-17 Thread Suganath Prabu S
While issuing any ATA Pass-through command to Firmware, driver will block the device, it will unblock the device only if that IO completes through ISR path. But if in-between any host reset occurs then driver won't unblock the device and device will be in blocked state. Signed-off-by: Suganath Pra

[PATCH v4 07/15] scsi: fc: implement kref backed reference counting

2016-11-17 Thread Johannes Thumshirn
Implement kref backed reference counting instead of rolling our own. This elimnates the need of the following fields in 'struct fc_bsg_job': * ref_cnt * state_flags * job_lock bringing us close to unification of 'struct fc_bsg_job' and 'struct bsg_job'. Signed-off-by: Johannes Thumshirn --- driv

[PATCH v4 04/15] scsi: fc: provide fc_bsg_to_shost() helper

2016-11-17 Thread Johannes Thumshirn
Provide fc_bsg_to_shost() helper that will become handy when we're moving from struct fc_bsg_job to a plain struct bsg_job. Also use this little helper in the LLDDs. Signed-off-by: Johannes Thumshirn Reviewed-by: Hannes Reinecke Acked-by: Tyrel Datwyler --- drivers/s390/scsi/zfcp_fc.c |

[PATCH v4 06/15] scsi: libfc: don't set FC_RQST_STATE_DONE before calling fc_bsg_jobdone()

2016-11-17 Thread Johannes Thumshirn
Don't set FC_RQST_STATE_DONE before calling fc_bsg_jobdone() as fc_bsg_jobdone() calls blk_complete_requeust() which raises a soft-IRQ that ends up in fc_bsg_sofirq_done() and fc_bsg_softirq_done() sets the FC_RQST_STATE_DONE flag. Signed-off-by: Johannes Thumshirn Reviewed-by: Hannes Reinecke -

[PATCH v4 13/15] block: add bsg_job_put() and bsg_job_get()

2016-11-17 Thread Johannes Thumshirn
Add bsg_job_put() and bsg_job_get() so don't need to export bsg_destroy_job() any more. Signed-off-by: Johannes Thumshirn Reviewed-by: Hannes Reinecke --- block/bsg-lib.c | 17 ++--- drivers/scsi/scsi_transport_fc.c | 4 ++-- include/linux/bsg-lib.h | 3 +

[PATCH v4 11/15] scsi: fc: use bsg_softirq_done

2016-11-17 Thread Johannes Thumshirn
bsg_softirq_done() and fc_bsg_softirq_done() are copies of each other, so ditch the fc specific one. Signed-off-by: Johannes Thumshirn Reviewed-by: Hannes Reinecke --- block/bsg-lib.c | 3 ++- drivers/scsi/scsi_transport_fc.c | 15 ++- include/linux/bsg-lib.h

[PATCH v4 12/15] scsi: fc: use bsg_job_done

2016-11-17 Thread Johannes Thumshirn
fc_bsg_jobdone() and bsg_job_done() are 1:1 copies now so use the bsg-lib one instead of the FC private implementation. Signed-off-by: Johannes Thumshirn Reviewed-by: Hannes Reinecke Acked-by: Tyrel Datwyler --- drivers/s390/scsi/zfcp_fc.c | 2 +- drivers/scsi/bfa/bfad_bsg.c | 4 ++

[PATCH v4 09/15] scsi: change FC drivers to use 'struct bsg_job'

2016-11-17 Thread Johannes Thumshirn
Change FC drivers to use 'struct bsg_job' from bsg-lib.h instead of 'struct fc_bsg_job' from scsi_transport_fc.h and remove 'struct fc_bsg_job'. Signed-off-by: Johannes Thumshirn Reviewed-by: Hannes Reinecke Acked-by: Tyrel Datwyler --- drivers/s390/scsi/zfcp_ext.h | 4 +-- drivers/s390/s

[PATCH v4 02/15] scsi: don't use fc_bsg_job::request and fc_bsg_job::reply directly

2016-11-17 Thread Johannes Thumshirn
Don't use fc_bsg_job::request and fc_bsg_job::reply directly, but use helper variables bsg_request and bsg_reply. This will be helpfull when transitioning to bsg-lib. Signed-off-by: Johannes Thumshirn Reviewed-by: Hannes Reinecke --- drivers/s390/scsi/zfcp_fc.c | 9 +- drivers/scsi/bfa/

[PATCH v4 14/15] scsi: fc: move FC transport's bsg code to bsg-lib

2016-11-17 Thread Johannes Thumshirn
Now that all conversions are done, move the FibreChannel bsg code over to the bsg library. This patch is derived from work done by Mike Christie in 2011 [1] but only the iscsi parts got merged back then. [1] http://marc.info/?l=linux-scsi&m=131149780921009&w=2 Signed-off-by: Johannes Thumshirn

[PATCH v4 10/15] scsi: fc: Use bsg_destroy_job

2016-11-17 Thread Johannes Thumshirn
fc_destroy_bsgjob() and bsg_destroy_job() are now 1:1 copies, so use the later. As bsg_destroy_job() comes from bsg-lib we need to select it in Kconfig once CONFOG_SCSI_FC_ATTRS is active. Signed-off-by: Johannes Thumshirn Reviewed-by: Hannes Reinecke --- block/bsg-lib.c | 7 +

[PATCH v4 03/15] scsi: fc: Export fc_bsg_jobdone and use it in FC drivers

2016-11-17 Thread Johannes Thumshirn
Export fc_bsg_jobdone so drivers can use it directly instead of doing the round-trip via struct fc_bsg_job::job_done() and use it in the LLDDs. That way we can also unify the interfaces of fc_bsg_jobdone and bsg_job_done. As we've converted all LLDDs over to use fc_bsg_jobdone() directly, we can r

[PATCH v4 01/15] scsi: Get rid of struct fc_bsg_buffer

2016-11-17 Thread Johannes Thumshirn
struct fc_bsg_buffer is just a clone of struct bsg_buffer from bsg-lib, so use this one instead. Signed-off-by: Johannes Thumshirn Reviewed-by: Hannes Reinecke Reviewed-by: Christoph Hellwig --- drivers/scsi/lpfc/lpfc_bsg.c | 3 ++- drivers/scsi/scsi_transport_fc.c | 2 +- include/scsi/s

[PATCH v4 05/15] scsi: fc: provide fc_bsg_to_rport() helper

2016-11-17 Thread Johannes Thumshirn
Provide fc_bsg_to_rport() helper that will become handy when we're moving from struct fc_bsg_job to a plain struct bsg_job. Also move all LLDDs to use the new helper. Signed-off-by: Johannes Thumshirn Reviewed-by: Hannes Reinecke Acked-by: Tyrel Datwyler --- drivers/s390/scsi/zfcp_fc.c |

Re: [PATCH] libfc: fix seconds_since_last_reset miscalculation

2016-11-17 Thread Johannes Thumshirn
On Wed, Nov 16, 2016 at 05:58:14PM +0100, Arnd Bergmann wrote: > On Tuesday, November 15, 2016 4:05:31 PM CET Johannes Thumshirn wrote: > > On Tue, Nov 15, 2016 at 02:50:17PM +, Bart Van Assche wrote: > > > On Tue, 2016-11-15 at 10:18 +0100, Johannes Thumshirn wrote: > > > > On Tue, Nov 08, 201