[PATCH 2/4] scsi_transport_fc: refactor event posting routines

2019-04-05 Thread James Smart
There are two routines generating transport events that do the same thing with only a couple of values set differently. Refactor so there's a single routine doing the netlink operations to send the event. All the differences are passed as arguments. Export the symbol so the generic routine can be

[PATCH 0/4] scsi fc FPIN event support

2019-04-05 Thread James Smart
The FC standard has defined a new Fabric Performance Impact Notification (FPIN) ELS that can be sent from the fabric to an endpoint to communicate fabric integrity information. The FPIN may communicate congestion detection, link integrity issues, or other similar conditions. This patch set adds mi

[PATCH 4/4] lpfc: add support for posting FC events on FPIN reception

2019-04-05 Thread James Smart
This patch adds support to recognize FPIN ELS's that are received. When one is received, the fc transport will be called to handle the the FPIN. Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc_els.c | 8 drivers/scsi/lpfc/lpfc_hw.h | 4 2 files changed, 12 insertions(+) dif

[PATCH 3/4] scsi_transport_fc: Add FPIN fc event codes

2019-04-05 Thread James Smart
Add a new event type - an FPIN event. Add a new routine, fc_host_fpin_rcv(), that lldd's call when an FPIN is received. The routine processes the fpin payload. For now, the routine only logs an FPIN event. Signed-off-by: Muneendra Signed-off-by: James Smart --- drivers/scsi/scsi_transport_fc.c

[PATCH 1/4] scsi fc: add FPIN ELS definition

2019-04-05 Thread James Smart
T11 has introduced a new Fabric Notifications mechanism whereby the fabric can notify a port of events occurring in the fabric. The notifications are given by the FPIN ELS. Add the FPIN ELS definitions to the kernel. Signed-off-by: James Smart --- include/uapi/scsi/fc/fc_els.h | 33

[PATCH] scsi: mptfusion: fix sign-extension on large shift of 1

2019-04-05 Thread Colin King
From: Colin Ian King Shifting the int value 1 can lead to sign-extension overflow when the shift is 31 bits and ending up with the upper 32 bits being set. Fix this by shifting 1ULL instead of 1. Signed-off-by: Colin Ian King --- drivers/message/fusion/mptsas.c | 6 +++--- 1 file changed, 3 i

Re: [PATCH] lpfc: Fix a recently introduced compiler warning

2019-04-05 Thread James Smart
On 4/5/2019 9:14 AM, Bart Van Assche wrote: This patch avoids that the following compiler warning is reported with CONFIG_NVME_FC=n: drivers/scsi/lpfc/lpfc_nvme.c:2140:1: warning: 'lpfc_nvme_lport_unreg_wait' defined but not used [-Wunused-function] lpfc_nvme_lport_unreg_wait(struct lpfc_v

[PATCH] lpfc: Fix a recently introduced compiler warning

2019-04-05 Thread Bart Van Assche
This patch avoids that the following compiler warning is reported with CONFIG_NVME_FC=n: drivers/scsi/lpfc/lpfc_nvme.c:2140:1: warning: 'lpfc_nvme_lport_unreg_wait' defined but not used [-Wunused-function] lpfc_nvme_lport_unreg_wait(struct lpfc_vport *vport, ^~ Fixes: 3

[PATCH] scsi: csiostor: fix missing data copy in csio_scsi_err_handler()

2019-04-05 Thread Varun Prakash
If scsi cmd sglist is not suitable for DDP then csiostor driver uses preallocated buffers for DDP, because of this data copy is required from DDP buffer to scsi cmd sglist before calling ->scsi_done(). Signed-off-by: Varun Prakash --- drivers/scsi/csiostor/csio_scsi.c | 5 - 1 file changed,

Re: [PATCH V4 1/7] blk-mq: grab .q_usage_counter when queuing request from plug code path

2019-04-05 Thread Ming Lei
On Fri, Apr 05, 2019 at 05:26:24PM +0800, Dongli Zhang wrote: > Hi Ming, > > On 04/04/2019 04:43 PM, Ming Lei wrote: > > Just like aio/io_uring, we need to grab 2 refcount for queuing one > > request, one is for submission, another is for completion. > > > > If the request isn't queued from plug

URGENT REPLY FOR THIS BUSINESS

2019-04-05 Thread Ms Safi Kabore
Dear Friend, I am Ms Safi Kabore work with the department of Audit and accounting manager here in the Bank, There is this fund that was keep in my custody years ago,please i need your assistance for the transferring of thIs fund to your bank account for both of us benefit for life time inv

Re: [PATCH V4 1/7] blk-mq: grab .q_usage_counter when queuing request from plug code path

2019-04-05 Thread Dongli Zhang
Hi Ming, On 04/04/2019 04:43 PM, Ming Lei wrote: > Just like aio/io_uring, we need to grab 2 refcount for queuing one > request, one is for submission, another is for completion. > > If the request isn't queued from plug code path, the refcount grabbed > in generic_make_request() serves for submi