Re: [PATCH] scsi:iscsi: Remove unused list 'connlist_err'

2024-05-06 Thread 'Martin K. Petersen' via open-iscsi
> I think the last use of this list was removed by > commit 23d6fefbb3f6 ("scsi: iscsi: Fix in-kernel conn failure > handling"). > > Build tested only. Applied to 6.10/scsi-staging, thanks! -- Martin K. Petersen Oracle Linux Engineering -- You received

Re: [PATCH 0/3] drivers: scsi: struct bus_type cleanup

2024-02-12 Thread Martin K. Petersen
o_lld_bus const https://git.kernel.org/mkp/scsi/c/ac0dd0f33adb -- Martin K. Petersen Oracle Linux Engineering -- You received this message because you are subscribed to the Google Groups "open-iscsi" group. To unsubscribe from this group and stop receiving emails from i

Re: [PATCH 0/3] drivers: scsi: struct bus_type cleanup

2024-02-05 Thread Martin K. Petersen
ging, thanks! -- Martin K. Petersen Oracle Linux Engineering -- You received this message because you are subscribed to the Google Groups "open-iscsi" group. To unsubscribe from this group and stop receiving emails from it, send an email to open-iscsi+unsubscr...@googlegroups.com. T

Re: [PATCH v5 00/10] scsi:scsi_debug: Add error injection for single device

2023-09-27 Thread Martin K. Petersen
> and hostbyte, driverbyte, statusbyte, and sense data for specific SCSI > Command. Two new error injection is defined to make abort command or > reset LUN failed. Please review patches 7 through 10. Thank you! -- Martin K. Petersen Oracle Linux Engineering -- You received this message be

Re: [PATCH v2 1/2] scsi: iscsi: Add length check for nlattr payload

2023-07-31 Thread Martin K. Petersen
msg_len < sizeof(*nlh) + sizeof(*ev) || > skb->len < nlh->nlmsg_len) { > break; > } > ... > err = iscsi_if_recv_msg(skb, nlh, ); > > [...] Applied to 6.6/scsi-queue, thanks! [1/2] scsi: iscsi: Add length check for nlattr payload https:

Re: [PATCH -next] scsi: iscsi: Remove unused extern declaration iscsi_lookup_iface()

2023-07-31 Thread Martin K. Petersen
On Tue, 25 Jul 2023 22:15:31 +0800, YueHaibing wrote: > This is not used anymore, so can be removed. > > Applied to 6.6/scsi-queue, thanks! [1/1] scsi: iscsi: Remove unused extern declaration iscsi_lookup_iface() https://git.kernel.org/mkp/scsi/c/a615e93d6cfe -- Martin K.

Re: [PATCH v1 2/2] scsi: iscsi: Add strlen check in iscsi_if_set_{host}_param

2023-07-25 Thread Martin K. Petersen
Lin, > The function iscsi_if_set_param and iscsi_if_set_host_param converts > nlattr payload to type char* and then call C string handling functions > like sscanf and kstrdup. Applied to 6.6/scsi-staging, thanks! -- Martin K. Petersen Oracle Linux Engineering -- You

Re: [PATCH v2 1/2] scsi: iscsi: Add length check for nlattr payload

2023-07-25 Thread Martin K. Petersen
Lin, > The current NETLINK_ISCSI netlink parsing loop checks every nlmsg to > make sure the length is bigger than the sizeof(struct iscsi_uevent) > and then calls iscsi_if_recv_msg(...). Applied to 6.6/scsi-staging, thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH -next] scsi: iscsi: Remove unused extern declaration iscsi_lookup_iface()

2023-07-25 Thread Martin K. Petersen
YueHaibing, > This is not used anymore, so can be removed. Applied to 6.6/scsi-staging, thanks! -- Martin K. Petersen Oracle Linux Engineering -- You received this message because you are subscribed to the Google Groups "open-iscsi" group. To unsubscribe from this g

Re: [PATCH v7] scsi:iscsi: Fix multiple iscsi session unbind event sent to userspace

2022-12-13 Thread Martin K. Petersen
Wenchao, > I found an issue that kernel would send ISCSI_KEVENT_UNBIND_SESSION > for multiple times which should be fixed. Applied to 6.2/scsi-staging, thanks! -- Martin K. Petersen Oracle Linux Engineering -- You received this message because you are subscribed to the Google

Re: [PATCH v3 0/2] Fix scsi device's iodone_cnt mismatch with iorequest_cnt

2022-11-30 Thread Martin K. Petersen
t_cnt if dispatch failed https://git.kernel.org/mkp/scsi/c/cfee29ffb45b -- Martin K. Petersen Oracle Linux Engineering -- You received this message because you are subscribed to the Google Groups "open-iscsi" group. To unsubscribe from this group and stop receiving emails

Re: [PATCH] scsi:iscsi: rename iscsi_set_param to iscsi_if_set_param

2022-11-30 Thread Martin K. Petersen
scsi-queue, thanks! [1/1] scsi:iscsi: rename iscsi_set_param to iscsi_if_set_param https://git.kernel.org/mkp/scsi/c/0c26a2d7c980 -- Martin K. Petersen Oracle Linux Engineering -- You received this message because you are subscribed to the Google Groups "open-iscsi"

Re: [PATCH v3 0/2] Fix scsi device's iodone_cnt mismatch with iorequest_cnt

2022-11-23 Thread Martin K. Petersen
Wenchao, > Following scenario would make scsi_device's iodone_cnt mismatch with > iorequest_cnt even if there is no request on this device any more. Applied to 6.2/scsi-staging, thanks! -- Martin K. Petersen Oracle Linux Engineering -- You received this message becau

Re: [PATCH] scsi:iscsi: rename iscsi_set_param to iscsi_if_set_param

2022-11-23 Thread Martin K. Petersen
Wenchao, > There are two iscsi_set_param() functions individually defined in > libiscsi.c and scsi_transport_iscsi.c which is confused. Applied to 6.2/scsi-staging, thanks! -- Martin K. Petersen Oracle Linux Engineering -- You received this message because you are subs

Re: [PATCH v2] scsi: iscsi: fix possible memory leak when device_register failed

2022-11-17 Thread Martin K. Petersen
si: fix possible memory leak when device_register failed https://git.kernel.org/mkp/scsi/c/f014165faa7b -- Martin K. Petersen Oracle Linux Engineering -- You received this message because you are subscribed to the Google Groups "open-iscsi" group. To unsubscribe from this gr

Re: [PATCH] scsi: iscsi: prefer xmit of DataOut before new cmd

2022-06-21 Thread Martin K. Petersen
ks! [1/1] scsi: iscsi: prefer xmit of DataOut before new cmd https://git.kernel.org/mkp/scsi/c/65080c51fde4 -- Martin K. Petersen Oracle Linux Engineering -- You received this message because you are subscribed to the Google Groups "open-iscsi" group. To unsubscribe from t

Re: [PATCH] drivers: scsi: Directly use ida_alloc()/free()

2022-06-10 Thread Martin K. Petersen
3fd3a52ca672 -- Martin K. Petersen Oracle Linux Engineering -- You received this message because you are subscribed to the Google Groups "open-iscsi" group. To unsubscribe from this group and stop receiving emails from it, send an email to open-iscsi+unsubscr...@googlegroups.com. T

Re: [PATCH] drivers: scsi: Directly use ida_alloc()/free()

2022-06-07 Thread Martin K. Petersen
keliu, > Use ida_alloc()/ida_free() instead of deprecated > ida_simple_get()/ida_simple_remove() . Applied to 5.20/scsi-staging, thanks! -- Martin K. Petersen Oracle Linux Engineering -- You received this message because you are subscribed to the Google Groups "open-i

Re: [PATCH] scsi: iscsi: fix harmless double shift bug

2022-05-02 Thread Martin K. Petersen
issue at run time. > > Applied to 5.19/scsi-queue, thanks! [1/1] scsi: iscsi: fix harmless double shift bug https://git.kernel.org/mkp/scsi/c/565138ac5f8a -- Martin K. Petersen Oracle Linux Engineering -- You received this message because you are subscribed to the Google G

Re: [PATCH] scsi: iscsi: fix harmless double shift bug

2022-04-25 Thread Martin K. Petersen
ging, thanks! -- Martin K. Petersen Oracle Linux Engineering -- You received this message because you are subscribed to the Google Groups "open-iscsi" group. To unsubscribe from this group and stop receiving emails from it, send an email to open-iscsi+unsubscr...@googlegroups.com. T

Re: [PATCH] scsi:libiscsi: remove unnecessary memset in iscsi_conn_setup

2022-03-29 Thread Martin K. Petersen
Wenchao, > iscsi_cls_conn is alloced by kzalloc(), the whole iscsi_cls_conn is > zero filled already including the dd_data. So it is unnecessary to > call memset again. Applied to 5.18/scsi-staging, thanks! -- Martin K. Petersen Oracle Linux Engineering -- You received thi

Re: [PATCH v3 0/3] scsi:iscsi: handle iscsi_cls_conn device with sysfs correctly

2022-03-18 Thread Martin K. Petersen
scsi: Add iscsi_cls_conn to sysfs after been initialized https://git.kernel.org/mkp/scsi/c/7dae459f5e56 [3/3] scsi:libiscsi: teradown iscsi_cls_conn gracefully https://git.kernel.org/mkp/scsi/c/8709c323091b -- Martin K. Petersen Oracle Linux Engineering -- You received this message be

Re: [PATCH v3 0/3] scsi:iscsi: handle iscsi_cls_conn device with sysfs correctly

2022-03-14 Thread Martin K. Petersen
Wenchao, > We found a NULL pointer dereference in iscsi_sw_tcp_conn_get_param(), > the root reason is we did sysfs addition wrong. Applied to 5.18/scsi-staging, thanks! -- Martin K. Petersen Oracle Linux Engineering -- You received this message because you are subscribed to the

Re: [PATCH v2] scsi: libiscsi: move init ehwait to iscsi_session_setup()

2021-09-21 Thread Martin K. Petersen
it.kernel.org/mkp/scsi/c/e018f03d6ccb -- Martin K. Petersen Oracle Linux Engineering -- You received this message because you are subscribed to the Google Groups "open-iscsi" group. To unsubscribe from this group and stop receiving emails from it, send an email to open-iscsi+unsubs

Re: [PATCH v2] scsi: libiscsi: move init ehwait to iscsi_session_setup()

2021-09-13 Thread Martin K. Petersen
hwait in iscsi_session_setup() to prevent reinit by mistake, > also in case we can handle multiple conns in the future. Applied to 5.16/scsi-staging, thanks! -- Martin K. Petersen Oracle Linux Engineering -- You received this message because you are subscribed to the Google Groups "op

Re: [PATCH -next] scsi: iscsi: Adjuest iface sysfs attr detection

2021-09-13 Thread Martin K. Petersen
ble in sysfs. Found in code review. > > Applied to 5.15/scsi-fixes, thanks! [1/1] scsi: iscsi: Adjuest iface sysfs attr detection https://git.kernel.org/mkp/scsi/c/4e2855082925 -- Martin K. Petersen Oracle Linux Engineering -- You received this message because you are subscr

Re: Aw: [EXT] Re: [PATCH 1/1] scsi: Fix spelling mistakes in header files

2021-05-26 Thread Martin K. Petersen
ontext of electronics and computing "busses" still appears to be widely in use. In any case, whether to use one or the other is up to the author of the code in question. I only merged fixed for what was obvious typos. Thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 1/1] scsi: Fix spelling mistakes in header files

2021-05-25 Thread Martin K. Petersen
=> interrupted Applied to 5.14/scsi-queue, thanks! [1/1] scsi: Fix spelling mistakes in header files https://git.kernel.org/mkp/scsi/c/40d6b939e4df -- Martin K. Petersen Oracle Linux Engineering -- You received this message because you are subscribed to the Google Groups "open-isc

Re: [PATCH 1/1] scsi: Fix spelling mistakes in header files

2021-05-21 Thread Martin K. Petersen
Zhen, > Fix some spelling mistakes in comments: > pathes ==> paths > Resouce ==> Resource > retreived ==> retrieved > keep-alives ==> keep-alive > recevied ==> received > busses ==> buses > interruped ==> interrupted Applied to 5.14/scsi-staging

Re: [PATCH] scsi: iscsi: fix inappropriate use of put_device

2020-12-09 Thread Martin K. Petersen
: iscsi: fix inappropriate use of put_device https://git.kernel.org/mkp/scsi/c/6dc1c7ab6f04 -- Martin K. Petersen Oracle Linux Engineering -- You received this message because you are subscribed to the Google Groups "open-iscsi" group. To unsubscribe from this group and stop

Re: [PATCH v3 27/56] scsi: fix some kernel-doc markups

2020-10-26 Thread Martin K. Petersen
Mauro, > Some identifiers have different names between their prototypes and the > kernel-doc markup. Applied to 5.11/scsi-staging, thanks! -- Martin K. Petersen Oracle Linux Engineering -- You received this message because you are subscribed to the Google Groups "open-i

Re: [PATCH] iscsi: iscsi_tcp: Avoid holding spinlock while calling getpeername

2020-09-29 Thread Martin K. Petersen
t;[SCSI] iscsi_tcp: use iscsi_conn_get_addr_param > libiscsi function") introduced getpeername() within the session spinlock. > > [...] Applied to 5.9/scsi-fixes, thanks! [1/1] scsi: iscsi: iscsi_tcp: Avoid holding spinlock while calling getpeername() https://git.kernel.org/mkp/scsi/c

Re: [PATCH v8 6/7] scsi: libiscsi: use sendpage_ok() in iscsi_tcp_segment_map()

2020-09-25 Thread Martin K. Petersen
g)) >= 1 && !PageSlab(sg_page(sg)" part is to > make sure the page can be sent to network layer's zero copy path. This > part is exactly what sendpage_ok() does. > > This patch uses use sendpage_ok() in iscsi_tcp_segment_map() to replace > the original open coded checks. Lo

Re: [PATCH] scsi: iscsi: Do not put host in iscsi_set_flashnode_param()

2020-07-28 Thread Martin K. Petersen
https://git.kernel.org/mkp/scsi/c/68e12e5f6135 -- Martin K. Petersen Oracle Linux Engineering -- You received this message because you are subscribed to the Google Groups "open-iscsi" group. To unsubscribe from this group and stop receiving emails from it, send an email to ope

Re: [PATCH] scsi: iscsi: register sysfs for workqueue iscsi_destroy

2020-07-08 Thread Martin K. Petersen
thread_workqueue(), added WQ_SYSFS and drop > __WQ_ORDERED_EXPLICIT since __WQ_ORDERED_EXPLICIT workqueue isn't allowed to > change "cpumask". Applied to 5.9/scsi-queue, thanks! [1/1] scsi: iscsi: Register sysfs for workqueue iscsi_destroy https://git.kernel.org/mkp/scsi/c/919a295

Re: [PATCH 1/2] scsi: iscsi: change back iscsi workqueue max_active argu to 1

2020-07-02 Thread Martin K. Petersen
e modified when max_active = 1. > > This patch change back max_active to 1 so as to keep the same behaviour as > before. Applied to 5.8/scsi-fixes, thanks! [1/2] scsi: iscsi: Change iSCSI workqueue max_active back to 1 https://git.kernel.org/mkp/scsi/c/1a9826204109 -- Martin K. Pe

Re: [PATCH] scsi: Fix reference count leak in iscsi_boot_create_kobj.

2020-06-02 Thread Martin K. Petersen
://git.kernel.org/mkp/scsi/c/0267ffce562c -- Martin K. Petersen Oracle Linux Engineering -- You received this message because you are subscribed to the Google Groups "open-iscsi" group. To unsubscribe from this group and stop receiving emails from it, send an email to open-iscsi

Re: [RFC RESEND PATCH v2] scsi: iscsi: register sysfs for iscsi workqueue

2020-05-26 Thread Martin K. Petersen
1 to 2, because "cpumask" of > ordered workqueue isn't allowed to change. > > [...] Applied to 5.8/scsi-queue, thanks! [1/1] scsi: iscsi: Register sysfs for iscsi workqueue https://git.kernel.org/mkp/scsi/c/3ce419662dd4 -- Martin K. Petersen Oracle Linux Engineerin

Re: [PATCH v2] iscsi: Fix deadlock on recovery path during GFP_IO reclaim

2020-05-26 Thread Martin K. Petersen
] scsi: iscsi: Fix deadlock on recovery path during GFP_IO reclaim https://git.kernel.org/mkp/scsi/c/7e7cd796f277 -- Martin K. Petersen Oracle Linux Engineering -- You received this message because you are subscribed to the Google Groups "open-iscsi" group. To unsubscribe from

Re: [PATCH] iscsi: Fix deadlock on recovery path during GFP_IO reclaim

2020-05-19 Thread Martin K. Petersen
Gabriel, > iscsi suffers from a deadlock in case a management command submitted > via the netlink socket sleeps on an allocation while holding the > rx_queue_mutex, This does not apply to 5.8/scsi-queue. Please resubmit. Thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] iscsi: Fix deadlock on recovery path during GFP_IO reclaim

2020-05-14 Thread Martin K. Petersen
nn(conn, ev->u.stop_conn.flag); > + iscsi_if_stop_conn(conn, ev->u.stop_conn.flag); > else > err = -EINVAL; > break; > case ISCSI_UEVENT_SEND_PDU: > conn = iscsi_conn_lookup(ev->u.send_pd

Re: [RFC RESEND PATCH v2] scsi: iscsi: register sysfs for iscsi workqueue

2020-05-14 Thread Martin K. Petersen
inglethread_workqueue("iscsi_eh"); > + iscsi_eh_timer_workq = alloc_workqueue("%s", > + WQ_SYSFS | __WQ_LEGACY | WQ_MEM_RECLAIM | WQ_UNBOUND, > + 2, "iscsi_eh"); > if (!iscsi_eh_timer_workq) { > err = -ENOMEM; &g

Re: [PATCH] iscsi:report unbind session event when the target has been removed

2020-03-31 Thread Martin K. Petersen
tely mangled. Please use git send-email to submit patches in the future! Thanks! Applied to 5.7/scsi-queue. -- Martin K. Petersen Oracle Linux Engineering -- You received this message because you are subscribed to the Google Groups "open-iscsi" group. To unsubscribe from this gr

Re: [PATCH] scsi:libiscsi:Fix an error count for active session

2020-03-26 Thread Martin K. Petersen
wubo, > Fix an error count for active session if the total_cmds is invalid on > the function iscsi_session_setup(). decrement the number of active > sessions before the func return. Applied to 5.7/scsi-queue, thanks! -- Martin K. Petersen Oracle Linux Engineering -- You

Re: [PATCH RESEND v4] iscsi: Report connection state on sysfs

2020-03-26 Thread Martin K. Petersen
-iscsi tries to > reopen every connection, but on different initiators, we'd like to > know which connections have failed. Applied to 5.7/scsi-queue, thanks! -- Martin K. Petersen Oracle Linux Engineering -- You received this message because you are subscribed to the Google Groups

Re: [PATCH RESEND v2] iscsi: Add support for asynchronous iSCSI session destruction

2020-02-28 Thread Martin K. Petersen
he operation > is queued and before it is performed. This change allow other > operations to run in other sessions in the meantime, removing one of > the major iSCSI bottlenecks for us. Applied to 5.7/scsi-queue. Thanks! -- Martin K. Petersen Oracle Linux Engineering -- You received thi

Re: [PATCH] scsi: Replace zero-length array with flexible-array member

2020-02-28 Thread Martin K. Petersen
Gustavo, > The current codebase makes use of the zero-length array language > extension to the C90 standard, but the preferred mechanism to declare > variable-length types such as these ones is a flexible array > member[1][2], introduced in C99: Applied to 5.7/scsi-queue, thanks.

Re: [PATCH RESEND v4] iscsi: Perform connection failure entirely in kernel space

2020-01-27 Thread Martin K. Petersen
In any case: Applied to 5.7/scsi-queue. Thanks! -- Martin K. Petersen Oracle Linux Engineering -- You received this message because you are subscribed to the Google Groups "open-iscsi" group. To unsubscribe from this group and stop receiving emails from it, send an email

Re: [PATCH 0/3] drivers base: transport component error propagation

2020-01-15 Thread Martin K. Petersen
ute_container_device > trigger version. Applied to 5.6/scsi-queue, thanks! -- Martin K. Petersen Oracle Linux Engineering -- You received this message because you are subscribed to the Google Groups "open-iscsi" group. To unsubscribe from this group and stop receiving emails fro

Re: [PATCH v4] iscsi: Perform connection failure entirely in kernel space

2020-01-15 Thread Martin K. Petersen
ely inside the kernel. > This way, the failover can happen and pending IO can continue even if > the daemon is dead. Once the daemon comes alive again, it can execute > recovery procedures if applicable. -- Martin K. Petersen Oracle Linux Engineering -- You received this message becau

Re: [PATCH RESEND] iscsi: Don't destroy session if there are outstanding connections

2020-01-15 Thread Martin K. Petersen
Gabriel, > A faulty userspace that calls destroy_session() before destroying the > connections can trigger the failure. This patch prevents the issue by > refusing to destroy the session if there are outstanding connections. Applied to 5.6/scsi-queue, thanks! -- Martin K.

Re: [PATCH V4] scsi: avoid potential deadlock in iscsi_if_rx func

2019-12-09 Thread Martin K. Petersen
s just personal taste. Applied to 5.5/scsi-fixes. Thanks! -- Martin K. Petersen Oracle Linux Engineering -- You received this message because you are subscribed to the Google Groups "open-iscsi" group. To unsubscribe from this group and stop receiving emails from it, send an emai

Re: [PATCH V4] scsi: avoid potential deadlock in iscsi_if_rx func

2019-12-09 Thread Martin K. Petersen
example, a client only send msg without calling recvmsg func, then > it will result in the watchdog soft lockup. The details are given as > follows, > Signed-off-by: Bo Wu > Reviewed-by: Zhiqiang Liu > Reviewed-by: Lee Duncan I haven't seen a Reviewed-by: from Lee on th

Re: [PATCH] iscsi: Don't send data to unbinded connection

2019-11-26 Thread Martin K. Petersen
Gabriel, > Although, looks like the MAINTAINERS file doesn't list linux-scsi as > the target for iscsi patches. Would you take the fix below to address > that? Applied to 5.5/scsi-queue, thanks! -- Martin K. Petersen Oracle Linux Engineering -- You received this message be

Re: [PATCH] iscsi: Don't send data to unbinded connection

2019-11-18 Thread Martin K. Petersen
> succeeded before trying to use the socket. Applied to 5.5/scsi-queue. But please make sure to send patch submissions to linux-s...@vger.kernel.org. -- Martin K. Petersen Oracle Linux Engineering -- You received this message because you are subscribed to the Google Groups &qu

Re: [PATCH] iscsi: Don't destroy session if there are outstanding connections

2019-11-18 Thread Martin K. Petersen
Gabriel, > A faulty userspace that calls destroy_session() before destroying the > connections can trigger the failure. This patch prevents the issue by > refusing to destroy the session if there are outstanding connections. Ditto. Please send to linux-scsi@vger. -- Martin K.

Re: [PATCH v3] scsi: avoid potential deadloop in iscsi_if_rx func

2019-11-12 Thread Martin K. Petersen
ple, a client only send msg without calling recvmsg func, > then it will result in the watchdog soft lockup. > The details are given as follows, Lee/Chris/Ulrich: Please review! -- Martin K. Petersen Oracle Linux Engineering -- You received this message because you are subscribed to

Re: [PATCH 12/24] libfc: switch to SPDX tags

2019-05-13 Thread Martin K. Petersen
Christoph, > Use the the GPLv2 SPDX tag instead of verbose boilerplate text. Applied to 5.3/scsi-queue except for patch #24. Patch #13 used /* */ syntax on some of the .c files. I fixed those up. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] iscsi: fall back to sendmsg for slab pages

2019-03-06 Thread Martin K. Petersen
Vasily, > In "XFS over network block device" scenario XFS can create IO requests > with slab-based XFS metadata. During processing such requests > tcp_sendpage() can merge skb fragments with neighbour slab objects. Applied to 5.1/scsi-queue, thanks! -- Martin K. Peterse

Re: [PATCH] iscsi: fall back to sendmsg for slab pages

2019-03-06 Thread Martin K. Petersen
Vasily, > James, Martin, noone replied 2 weeks, could you please pick up this > patch? No objections from me wrt. to the change. However, I am awaiting a review from the iSCSI maintainers Lee and Chris. -- Martin K. Petersen Oracle Linux Engineering -- You received this m

Re: [RESEND PATCH] libiscsi: Fix race between iscsi_xmit_task and iscsi_complete_task

2019-02-15 Thread Martin K. Petersen
Bob, > When a target sends Check Condition, whilst initiator is busy xmiting > re-queued data, could lead to race between iscsi_complete_task() and > iscsi_xmit_task() and eventually crashing with the following kernel > backtrace. Applied to 5.0/scsi-fixes, thanks! -- Martin

Re: [PATCH] iscsi: Capture iscsi debug messages using tracepoints

2018-12-20 Thread Martin K. Petersen
Fred, > This commit enhances iscsi initiator modules to capture iscsi debug > messages using linux kernel tracepoint facility: Applied to 4.21/scsi-queue, thanks! -- Martin K. Petersen Oracle Linux Engineering -- You received this message because you are subscribed to the

Re: [PATCH] libiscsi: Fix NULL pointer dereference in iscsi_eh_session_reset

2018-11-28 Thread Martin K. Petersen
Fred, > This commit addresses NULL pointer dereference in > iscsi_eh_session_reset. Reference should not be made to > session->leadconn when session->state is set to ISCSI_STATE_TERMINATE. Applied to 4.20/scsi-fixes, thanks! -- Martin K. Petersen Oracle Linux Engin

Re: [PATCH] scsi: iscsi_tcp: set BDI_CAP_STABLE_WRITES when data digest enabled

2018-03-19 Thread Martin K. Petersen
; To fix this, set BDI_CAP_STABLE_WRITES when data digest is enabled > in iscsi_tcp .slave_configure callback. Applied to 4.16/scsi-fixes. Thanks! -- Martin K. Petersen Oracle Linux Engineering -- You received this message because you are subscribed to the Google Groups "open-iscsi" group.

Re: [PATCH] scsi: iscsi_tcp: set BDI_CAP_STABLE_WRITES when data digest enabled

2018-03-14 Thread Martin K. Petersen
STABLE_WRITES when data digest is enabled > in iscsi_tcp .slave_configure callback. Lee, Chris: Please review! -- Martin K. Petersen Oracle Linux Engineering -- You received this message because you are subscribed to the Google Groups "open-iscsi" group. To unsubscribe fro

Re: [PATCH] scsi: scsi_transport_iscsi: use put_device() instead of kfree()

2018-03-14 Thread Martin K. Petersen
> Never directly free @dev after calling device_register(), even > if it returned an error! Always use put_device() to give up the > reference initialized. Lee, Chris: Please review! -- Martin K. Petersen Oracle Linux Engineering -- You received this message because you are s

Re: [PATCH] scsi: libiscsi: Allow sd_shutdown on bad transport

2018-01-03 Thread Martin K. Petersen
rever on its > sd_sync_cache() logic, after issuing the SYNCHRONIZE_CACHE cmd to all > still existent paths. Applied to 4.16/scsi-queue. Thank you! -- Martin K. Petersen Oracle Linux Engineering -- You received this message because you are subscribed to the Google Groups "open-iscsi"

Re: [PATCH] scsi: libiscsi: Allow sd_shutdown on bad transport

2017-12-20 Thread Martin K. Petersen
; sd_sync_cache() logic, after issuing the SYNCHRONIZE_CACHE cmd to all > still existent paths. Chris and Lee: Please review. Thanks! -- Martin K. Petersen Oracle Linux Engineering -- You received this message because you are subscribed to the Google Groups "open-iscsi" group. To

Re: [PATCH] scsi: scsi_transport_iscsi: fix spelling mistake: 'Cound' -> 'Could'

2017-10-31 Thread Martin K. Petersen
Arvind, > Trivial fix to spelling mistakes in 'iscsi_get_host_stats'. Applied to 4.15/scsi-queue. -- Martin K. Petersen Oracle Linux Engineering -- You received this message because you are subscribed to the Google Groups "open-iscsi" group. To unsubscribe from this g

Re: [PATCH] scsi: libiscsi: Convert timers to use timer_setup()

2017-10-16 Thread Martin K. Petersen
Kees, > In preparation for unconditionally passing the struct timer_list > pointer to all timer callbacks, switch to using the new timer_setup() > and from_timer() to pass the timer pointer explicitly. Reviewed-by: Martin K. Petersen <martin.peter...@oracle.com> -- Mar

Re: [Patch v2 1/2] libiscsi: Fix use-after-free race during iscsi_session_teardown

2017-10-02 Thread Martin K. Petersen
Khazhismel, > Noticed these don't seem to be in 4.14/scsi-queue Not sure what happened there. I apologize. They are now in 4.14/scsi-fixes. -- Martin K. Petersen Oracle Linux Engineering -- You received this message because you are subscribed to the Google Groups "open-iscs

Re: [Patch v2 1/2] libiscsi: Fix use-after-free race during iscsi_session_teardown

2017-08-29 Thread Martin K. Petersen
Chris, > Looks good to me, fixes up the code given that the comment there about > calling iscsi_remove_session wasn't being followed. Applied these two to 4.14/scsi-queue. -- Martin K. Petersen Oracle Linux Engineering -- You received this message because you are subs

Re: [PATCH 13/15] scsi: make device_type const

2017-08-25 Thread Martin K. Petersen
Bhumika, > Make these const as they are only stored in the type field of a device > structure, which is const. Applied to 4.14/scsi-queue. Thanks! -- Martin K. Petersen Oracle Linux Engineering -- You received this message because you are subscribed to the Google Groups "

Re: [PATCH] drivers, scsi: convert iscsi_task.refcount from atomic_t to refcount_t

2017-03-15 Thread Martin K. Petersen
tuations. Applied to 4.12/scsi-queue. -- Martin K. Petersen Oracle Linux Engineering -- You received this message because you are subscribed to the Google Groups "open-iscsi" group. To unsubscribe from this group and stop receiving emails from it, send an email to open-iscsi+unsubscr.

Re: [PATCH v2] libiscsi: add lock around task lists to fix list corruption regression

2017-02-28 Thread Martin K. Petersen
>>>>> "Chris" == Chris Leech <cle...@redhat.com> writes: Chris> There's a rather long standing regression from the commit Chris> "libiscsi: Reduce locking contention in fast path" Applied to 4.11/scsi-fixes. -- Martin K. Petersen Oracle L

Re: [PATCH] libiscsi: add lock around task lists to fix list corruption regression

2017-02-23 Thread Martin K. Petersen
terprise supported kernels have been backing out the lock Chris> split for while now, thanks to the efforts at IBM where a lab Chris> setup has the most reliable reproducer I've seen on this issue. Chris> This patch has been tested there successfully. Reviews, please! -- Martin K. Pe

Re: [PATCHv2] MAINTAINERS: Update open-iscsi maintainers

2016-09-27 Thread Martin K. Petersen
ugh the Linux SCSI mailing list and repository for a while, Lee> now. Yep. Just wanted to make sure. Thanks! -- Martin K. Petersen Oracle Linux Engineering -- You received this message because you are subscribed to the Google Groups "open-iscsi" group. To unsubscribe from

Re: [PATCHv2] MAINTAINERS: Update open-iscsi maintainers

2016-09-26 Thread Martin K. Petersen
>>>>> "Lee" == Lee Duncan <ldun...@suse.com> writes: Lee, Lee> Chris Leech and I are taking over as open-iscsi maintainers. Do you want me to queue the MAINTAINER update? Lee> * Removed git repository, since code in tree Is it your plan to go through t

Re: [PATCH] Use ida_simple for SCSI iSCSI transport session id

2016-03-07 Thread Martin K. Petersen
>>>>> "Lee" == Lee Duncan <ldun...@suse.com> writes: Lee> It looks like Mike and Chris are good with it. However, it received no formal reviews or acked-bys... -- Martin K. Petersen Oracle Linux Engineering -- You received this message because you a

Re: iSCSI request keep rejected by microsoft iSCSI target because of write_same check

2014-12-03 Thread Martin K. Petersen
is a no-go. -- Martin K. Petersen Oracle Linux Engineering -- You received this message because you are subscribed to the Google Groups open-iscsi group. To unsubscribe from this group and stop receiving emails from it, send an email to open-iscsi+unsubscr...@googlegroups.com. To post

Re: iSCSI request keep rejected by microsoft iSCSI target because of write_same check

2014-12-03 Thread Martin K. Petersen
out a proposed patch. -- Martin K. Petersen Oracle Linux Engineering -- You received this message because you are subscribed to the Google Groups open-iscsi group. To unsubscribe from this group and stop receiving emails from it, send an email to open-iscsi+unsubscr...@googlegroups.com

Re: iSCSI request keep rejected by microsoft iSCSI target because of write_same check

2014-12-02 Thread Martin K. Petersen
SAME problem was that the target returns an iSCSI-specific error code rather than a check condition with ILLEGAL REQUEST. You were going to talk to MS. However, if somebody sends me the relevant INQUIRY strings for the MS target I'll add it to the WRITE SAME quirk list. -- Martin K. Petersen

Re: iSCSI request keep rejected by microsoft iSCSI target because of write_same check

2014-01-09 Thread Martin K. Petersen
handling in the iscsi layer for it. I Mike can make a patch if you have not already. It would be awfully nice to get it turned into an ILLEGAL REQUEST/0x20/0x0. -- Martin K. Petersen Oracle Linux Engineering -- You received this message because you are subscribed to the Google Groups open