* [PATCH 1/3] zfcp: correct kdoc parameter description for sending ELS and CT
2024-12-05 14:19 [PATCH 0/3] zfcp changes for v6.14 Nihar Panda
@ 2024-12-05 14:19 ` Nihar Panda
2024-12-05 14:19 ` [PATCH 2/3] zfcp: clarify zfcp_port refcount ownership during "link" test Nihar Panda
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Nihar Panda @ 2024-12-05 14:19 UTC (permalink / raw)
To: James E . J . Bottomley, Martin K . Petersen
Cc: linux-scsi, linux-s390, Heiko Carstens, Vasily Gorbik,
Alexander Gordeev, Christian Borntraeger, Benjamin Block,
Steffen Maier
From: Fedor Loshakov <loshakov@linux.ibm.com>
Since commit 7c7dc196814b ("[SCSI] zfcp: Simplify handling of ct and els
requests") there are no more such structures as zfcp_send_els and
zfcp_send_ct. Instead there is now one common fsf structure to hold zfcp
data for ct and els requests. Fix parameter description for
zfcp_fsf_send_ct() and zfcp_fsf_send_els() accordingly.
Signed-off-by: Fedor Loshakov <loshakov@linux.ibm.com>
Reviewed-by: Steffen Maier <maier@linux.ibm.com>
Reviewed-by: Benjamin Block <bblock@linux.ibm.com>
Signed-off-by: Nihar Panda <niharp@linux.ibm.com>
---
drivers/s390/scsi/zfcp_fsf.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/s390/scsi/zfcp_fsf.c b/drivers/s390/scsi/zfcp_fsf.c
index 22e82000334a..99d6b3f8692b 100644
--- a/drivers/s390/scsi/zfcp_fsf.c
+++ b/drivers/s390/scsi/zfcp_fsf.c
@@ -1218,7 +1218,7 @@ static int zfcp_fsf_setup_ct_els(struct zfcp_fsf_req *req,
/**
* zfcp_fsf_send_ct - initiate a Generic Service request (FC-GS)
* @wka_port: pointer to zfcp WKA port to send CT/GS to
- * @ct: pointer to struct zfcp_send_ct with data for request
+ * @ct: pointer to struct zfcp_fsf_ct_els with data for CT request
* @pool: if non-null this mempool is used to allocate struct zfcp_fsf_req
* @timeout: timeout that hardware should use, and a later software timeout
*/
@@ -1316,7 +1316,7 @@ static void zfcp_fsf_send_els_handler(struct zfcp_fsf_req *req)
* zfcp_fsf_send_els - initiate an ELS command (FC-FS)
* @adapter: pointer to zfcp adapter
* @d_id: N_Port_ID to send ELS to
- * @els: pointer to struct zfcp_send_els with data for the command
+ * @els: pointer to struct zfcp_fsf_ct_els with data for the ELS command
* @timeout: timeout that hardware should use, and a later software timeout
*/
int zfcp_fsf_send_els(struct zfcp_adapter *adapter, u32 d_id,
--
2.45.2
^ permalink raw reply related [flat|nested] 6+ messages in thread* [PATCH 2/3] zfcp: clarify zfcp_port refcount ownership during "link" test
2024-12-05 14:19 [PATCH 0/3] zfcp changes for v6.14 Nihar Panda
2024-12-05 14:19 ` [PATCH 1/3] zfcp: correct kdoc parameter description for sending ELS and CT Nihar Panda
@ 2024-12-05 14:19 ` Nihar Panda
2024-12-05 14:19 ` [PATCH 3/3] MAINTAINERS: Update zfcp entry Nihar Panda
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Nihar Panda @ 2024-12-05 14:19 UTC (permalink / raw)
To: James E . J . Bottomley, Martin K . Petersen
Cc: linux-scsi, linux-s390, Heiko Carstens, Vasily Gorbik,
Alexander Gordeev, Christian Borntraeger, Benjamin Block,
Steffen Maier
From: Steffen Maier <maier@linux.ibm.com>
Reviewed-by: Benjamin Block <bblock@linux.ibm.com>
Signed-off-by: Steffen Maier <maier@linux.ibm.com>
Signed-off-by: Nihar Panda <niharp@linux.ibm.com>
---
drivers/s390/scsi/zfcp_fc.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/drivers/s390/scsi/zfcp_fc.c b/drivers/s390/scsi/zfcp_fc.c
index d6516ab00437..1d50f463afe7 100644
--- a/drivers/s390/scsi/zfcp_fc.c
+++ b/drivers/s390/scsi/zfcp_fc.c
@@ -537,6 +537,11 @@ static void zfcp_fc_adisc_handler(void *data)
/* port is still good, nothing to do */
out:
atomic_andnot(ZFCP_STATUS_PORT_LINK_TEST, &port->status);
+ /*
+ * port ref comes from get_device() in zfcp_fc_test_link() and
+ * work item zfcp_fc_link_test_work() passes ref via
+ * zfcp_fc_adisc() to here, if zfcp_fc_adisc() could send ADISC
+ */
put_device(&port->dev);
kmem_cache_free(zfcp_fc_req_cache, fc_req);
}
@@ -603,7 +608,7 @@ void zfcp_fc_link_test_work(struct work_struct *work)
retval = zfcp_fc_adisc(port);
if (retval == 0)
- return;
+ return; /* port ref passed to zfcp_fc_adisc(), no put here */
/* send of ADISC was not possible */
atomic_andnot(ZFCP_STATUS_PORT_LINK_TEST, &port->status);
--
2.45.2
^ permalink raw reply related [flat|nested] 6+ messages in thread* [PATCH 3/3] MAINTAINERS: Update zfcp entry
2024-12-05 14:19 [PATCH 0/3] zfcp changes for v6.14 Nihar Panda
2024-12-05 14:19 ` [PATCH 1/3] zfcp: correct kdoc parameter description for sending ELS and CT Nihar Panda
2024-12-05 14:19 ` [PATCH 2/3] zfcp: clarify zfcp_port refcount ownership during "link" test Nihar Panda
@ 2024-12-05 14:19 ` Nihar Panda
2024-12-10 2:55 ` [PATCH 0/3] zfcp changes for v6.14 Martin K. Petersen
2025-01-02 22:46 ` Martin K. Petersen
4 siblings, 0 replies; 6+ messages in thread
From: Nihar Panda @ 2024-12-05 14:19 UTC (permalink / raw)
To: James E . J . Bottomley, Martin K . Petersen
Cc: linux-scsi, linux-s390, Heiko Carstens, Vasily Gorbik,
Alexander Gordeev, Christian Borntraeger, Benjamin Block,
Steffen Maier
From: Steffen Maier <maier@linux.ibm.com>
Nihar takes over the zfcp maintainer work. Update the MAINTAINERS entry
accordingly.
Signed-off-by: Steffen Maier <maier@linux.ibm.com>
Acked-by: Steffen Maier <maier@linux.ibm.com>
Acked-by: Benjamin Block <bblock@linux.ibm.com>
Acked-by: Nihar Panda <niharp@linux.ibm.com>
Signed-off-by: Nihar Panda <niharp@linux.ibm.com>
---
MAINTAINERS | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/MAINTAINERS b/MAINTAINERS
index 1e930c7a58b1..463c213815c2 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -20656,8 +20656,7 @@ F: arch/s390/include/uapi/asm/zcrypt.h
F: drivers/s390/crypto/
S390 ZFCP DRIVER
-M: Steffen Maier <maier@linux.ibm.com>
-M: Benjamin Block <bblock@linux.ibm.com>
+M: Nihar Panda <niharp@linux.ibm.com>
L: linux-s390@vger.kernel.org
S: Supported
F: drivers/s390/scsi/zfcp_*
--
2.45.2
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH 0/3] zfcp changes for v6.14
2024-12-05 14:19 [PATCH 0/3] zfcp changes for v6.14 Nihar Panda
` (2 preceding siblings ...)
2024-12-05 14:19 ` [PATCH 3/3] MAINTAINERS: Update zfcp entry Nihar Panda
@ 2024-12-10 2:55 ` Martin K. Petersen
2025-01-02 22:46 ` Martin K. Petersen
4 siblings, 0 replies; 6+ messages in thread
From: Martin K. Petersen @ 2024-12-10 2:55 UTC (permalink / raw)
To: Nihar Panda
Cc: James E . J . Bottomley, Martin K . Petersen, linux-scsi,
linux-s390, Heiko Carstens, Vasily Gorbik, Alexander Gordeev,
Christian Borntraeger, Benjamin Block, Steffen Maier
Nihar,
> here is a small set of changes for the zFCP device driver.
Applied to 6.14/scsi-staging, thanks!
--
Martin K. Petersen Oracle Linux Engineering
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [PATCH 0/3] zfcp changes for v6.14
2024-12-05 14:19 [PATCH 0/3] zfcp changes for v6.14 Nihar Panda
` (3 preceding siblings ...)
2024-12-10 2:55 ` [PATCH 0/3] zfcp changes for v6.14 Martin K. Petersen
@ 2025-01-02 22:46 ` Martin K. Petersen
4 siblings, 0 replies; 6+ messages in thread
From: Martin K. Petersen @ 2025-01-02 22:46 UTC (permalink / raw)
To: James E . J . Bottomley, Nihar Panda
Cc: Martin K . Petersen, linux-scsi, linux-s390, Heiko Carstens,
Vasily Gorbik, Alexander Gordeev, Benjamin Block, Steffen Maier,
Christian Borntraeger
On Thu, 05 Dec 2024 15:19:29 +0100, Nihar Panda wrote:
> here is a small set of changes for the zFCP device driver.
>
> Fedor Loshakov (1):
> zfcp: correct kdoc parameter description for sending ELS and CT
>
> Steffen Maier (2):
> zfcp: clarify zfcp_port refcount ownership during "link" test
> MAINTAINERS: Update zfcp entry
>
> [...]
Applied to 6.14/scsi-queue, thanks!
[1/3] zfcp: correct kdoc parameter description for sending ELS and CT
https://git.kernel.org/mkp/scsi/c/9fe5b6130baf
[2/3] zfcp: clarify zfcp_port refcount ownership during "link" test
https://git.kernel.org/mkp/scsi/c/32574fe6e19d
[3/3] MAINTAINERS: Update zfcp entry
https://git.kernel.org/mkp/scsi/c/bd55f56188ca
--
Martin K. Petersen Oracle Linux Engineering
^ permalink raw reply [flat|nested] 6+ messages in thread