Re: [PATCH 0/5] qla2xxx: Bug fixes for the driver

2018-07-19 Thread Martin K. Petersen
Himanshu, > This patch series fixes issues with load/unload of the driver in a > loop. > > Please apply this series for 4.18/scsi-fixes at your earliest convenience > to be included in 4.18.0-rc6. Applied to 4.18/scsi-fixes, thank you! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] scsi: csiostor: update ingress pack and pad boundary value

2018-07-19 Thread Martin K. Petersen
Varun, > T5/T6 can have different pack and pad boundary value. This patch sets > packing boundary based on cache line size and PCI-E maximum payload > size and sets smallest padding boundary value. Applied to 4.19/scsi-queue, thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] mpt3sas: correct reset of smid while clearing scsi tracker

2018-07-19 Thread Sreekanth Reddy
On Wed, Jul 18, 2018 at 7:38 PM, Bart Van Assche wrote: > On Wed, 2018-07-18 at 01:22 -0400, Sreekanth Reddy wrote: >> In mpt3sas_base_clear_st() function smid value is reseted in wrong line, >> i.e. driver should reset smid value to zero after decrementing chain_offset >> counter in chain_lookup

[PATCH] tcmu: fix crash for dereferencing the released udev->mb_addr memory

2018-07-19 Thread xiubli
From: Xiubo Li The logs are: BUG: unable to handle kernel NULL pointer dereference at 0040 IP: [] tcmu_reset_ring_store+0x149/0x240 [target_core_user] PGD 8e254067 PUD e255067 PMD 0 Oops: 0002 [#1] SMP [...] CPU: 0 PID: 36077 Comm: tcmu-runner Kdump: loaded Not tainted

Re: [PATCH 02/15] target: fix isid copying and comparision

2018-07-19 Thread Mike Christie
On 07/19/2018 10:15 AM, Bart Van Assche wrote: > On Wed, 2018-07-18 at 20:02 -0500, Mike Christie wrote: >> On 07/18/2018 07:03 PM, Mike Christie wrote: >>> On 07/18/2018 05:09 PM, Bart Van Assche wrote: [ ... ] is that these involve a transport ID and that that transport ID can be up

Re: [PATCH 11/15] target: export initiator port values for all sessions

2018-07-19 Thread Bart Van Assche
On Thu, 2018-07-19 at 11:38 -0500, Mike Christie wrote: > On 07/19/2018 10:37 AM, Bart Van Assche wrote: > > The general recommendation for configfs is that each attribute contains a > > single value, just like for sysfs. Patch 11/15 exports two values through > > a single attribute. Have you

Re: [PATCH 02/15] target: fix isid copying and comparision

2018-07-19 Thread Bart Van Assche
On Wed, 2018-07-18 at 20:02 -0500, Mike Christie wrote: > On 07/18/2018 07:03 PM, Mike Christie wrote: > > On 07/18/2018 05:09 PM, Bart Van Assche wrote: > > > [ ... ] > > > is that these involve a transport ID and that that transport ID can be up > > > to 228 > > > bytes long for iSCSI. > > > >

Re: [PATCH 04/15] target/iscsi: move session_index to common se_session

2018-07-19 Thread Bart Van Assche
On Wed, 2018-07-18 at 22:47 -0500, Mike Christie wrote: > Hey Bart, I looked into this some more and this value is also being used > as the scsiAttIntrPortIndex. For that use, does it need to be unique > across a target when the target has multiple ports? > > So I think it needs to be on the

Re: [PATCH 11/15] target: export initiator port values for all sessions

2018-07-19 Thread Bart Van Assche
On Sun, 2018-07-15 at 18:16 -0500, Mike Christie wrote: > + if (se_sess->se_tpg->se_tpg_tfo->sess_get_initiator_sid) { > + len = snprintf(page, PAGE_SIZE, "%s 0x%6phN\n", > +se_sess->se_node_acl->initiatorname, > +

Re: [PATCH 11/15] target: export initiator port values for all sessions

2018-07-19 Thread Bart Van Assche
On Wed, 2018-07-18 at 21:15 -0500, Mike Christie wrote: > Oh wait, I think I know what you mean. I should have written "se_node_acl" instead of "se_portal_group". Bart.

Re: [PATCH] tcmu: fix crash for dereferencing the released udev->mb_addr memory

2018-07-19 Thread Mike Christie
On 07/19/2018 09:30 AM, xiu...@redhat.com wrote: > From: Xiubo Li > > The logs are: > > BUG: unable to handle kernel NULL pointer dereference at 0040 > IP: [] tcmu_reset_ring_store+0x149/0x240 [target_core_user] > PGD 8e254067 PUD e255067 PMD 0 > Oops: 0002 [#1] SMP > [...]

Re: [PATCH 11/15] target: export initiator port values for all sessions

2018-07-19 Thread Mike Christie
On 07/19/2018 10:37 AM, Bart Van Assche wrote: > On Sun, 2018-07-15 at 18:16 -0500, Mike Christie wrote: >> +if (se_sess->se_tpg->se_tpg_tfo->sess_get_initiator_sid) { >> +len = snprintf(page, PAGE_SIZE, "%s 0x%6phN\n", >> +

Re: [PATCH 03/15] target: fix __transport_register_session locking

2018-07-19 Thread Christoph Hellwig
On Sun, Jul 15, 2018 at 06:16:19PM -0500, Mike Christie wrote: > When __transport_register_session is called from > transport_register_session irqs will already have been disabled, > so we do not want the unlock irq call to enable them until > the higher level has done the final >

Re: [PATCH 06/15] target: make transport_init_session_tags static

2018-07-19 Thread Christoph Hellwig
On Sun, Jul 15, 2018 at 06:16:22PM -0500, Mike Christie wrote: > transport_init_session_tags is only called from target_core_transport.c > so make it static. > > Signed-off-by: Mike Christie Looks fine by itself: Reviewed-by: Christoph Hellwig Although folding it into the only caller would

Re: [PATCH 07/15] target: rename target_alloc_session

2018-07-19 Thread Christoph Hellwig
On Sun, Jul 15, 2018 at 06:16:23PM -0500, Mike Christie wrote: > Rename target_alloc_session to target_setup_session to avoid > confusion with the other transport session allocation > function that only allocates the session and because > the target_alloc_session does so more. It allocates the >

Re: [PATCH 11/15] target: export initiator port values for all sessions

2018-07-19 Thread Christoph Hellwig
On Thu, Jul 19, 2018 at 05:07:59PM +, Bart Van Assche wrote: > Initially configfs did not support creation of a directory from the kernel > side. Last time I brought this up with Christoph he replied that this > functionality has been added to configfs (if I understood Christoph > correctly).

Re: [PATCH 13/15] iscsi target: check nopin_response_timeout before starting timer

2018-07-19 Thread Christoph Hellwig
Looks good, Reviewed-by: Christoph Hellwig

Re: [PATCH 15/15] iscsi target: merge iscsit_start_nopin_timer and __iscsit_start_nopin_timer

2018-07-19 Thread Christoph Hellwig
On Sun, Jul 15, 2018 at 06:16:31PM -0500, Mike Christie wrote: > Just have iscsit_start_nopin_timer grab the lock and > call __iscsit_start_nopin_timer. It doesn't really merge them but makes one call the other. Except for that this looks fine: Reviewed-by: Christoph Hellwig

Re: [PATCH 05/15] target: remove sess_get_index

2018-07-19 Thread Christoph Hellwig
On Sun, Jul 15, 2018 at 06:16:21PM -0500, Mike Christie wrote: > sess_get_index is meaninless for most drivers. For iscsi, it > is the same as the se_session->sid now and for fcoe it was just > the port id which would not work if multiple initiators > connected to the same target port. So just use

Re: [PATCH 08/15] target: add session removal function

2018-07-19 Thread Christoph Hellwig
On Sun, Jul 15, 2018 at 06:16:24PM -0500, Mike Christie wrote: > For tcm_fc, it should be ok to call > transport_deregister_session_configfs later like in the new > remove function because the transport_deregister_session_configfs call > was not affecting the target_sess_cmd_list_set_waiting/ >

Re: [PATCH 11/15] target: export initiator port values for all sessions

2018-07-19 Thread Mike Christie
On 07/19/2018 03:47 PM, Christoph Hellwig wrote: > On Thu, Jul 19, 2018 at 05:07:59PM +, Bart Van Assche wrote: >> Initially configfs did not support creation of a directory from the kernel >> side. Last time I brought this up with Christoph he replied that this >> functionality has been added