[PATCH v2, RESEND] Separate target visibility from reaped state information

2016-01-06 Thread Bart Van Assche
Instead of representing the states "visible in sysfs" and "has been removed from the target list" by a single state variable, use two variables to represent this information. This patch avoids that SCSI device removal can trigger a soft lockup. See also: * "scsi: restart list search after unlock

[PATCH v2] ipr: fix out-of-bounds null overwrite

2016-01-06 Thread Insu Yun
Return value of snprintf is not bound by size value, 2nd argument. (https://www.kernel.org/doc/htmldocs/kernel-api/API-snprintf.html). Return value is number of printed chars, can be larger than 2nd argument. Therefore, it can write null byte out of bounds ofbuffer. Since snprintf puts null, it

[PATCH net-next 2/3] libcxgbi: add pdu parsing of LRO'ed skbs

2016-01-06 Thread Hariprasad Shenai
The skbs could contain both paritial pdus and multiple completed pdus. Signed-off-by: Karen Xie Signed-off-by: Manoj Malviya Signed-off-by: Hariprasad Shenai --- drivers/scsi/cxgbi/libcxgbi.c | 415

[PATCH net-next 0/3] cxgb4/cxgb4i: add iscsi LRO support for chelsio t4/t5 adapters

2016-01-06 Thread Hariprasad Shenai
Hi This patch series adds LRO iscsi support for chelsio T4/T5 adapters. This patch series has been created against net-next tree and includes patches on cxgb4 and cxgb4i driver. We have included all the maintainers of respective drivers. Kindly review the change and let us know in case of any

[PATCH net-next 3/3] cxgb4i: add iscsi LRO for chelsio t4/t5 adapters

2016-01-06 Thread Hariprasad Shenai
Signed-off-by: Karen Xie Signed-off-by: Manoj Malviya Signed-off-by: Hariprasad Shenai --- drivers/scsi/cxgbi/cxgb4i/cxgb4i.c | 396 +++-- 1 file changed, 382 insertions(+), 14 deletions(-)

Re: [PATCH v2, RESEND] Separate target visibility from reaped state information

2016-01-06 Thread Christoph Hellwig
Looks good, Reviewed-by: Christoph Hellwig -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH net-next 1/3] cxgb4: Add LRO infrastructure for cxgb4i driver

2016-01-06 Thread Hariprasad Shenai
Signed-off-by: Hariprasad Shenai --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 15 +- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 40 ++--- drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.h | 5

Re: [PATCH net-next 2/3] libcxgbi: add pdu parsing of LRO'ed skbs

2016-01-06 Thread kbuild test robot
Hi Hariprasad, [auto build test ERROR on net-next/master] url: https://github.com/0day-ci/linux/commits/Hariprasad-Shenai/cxgb4-Add-LRO-infrastructure-for-cxgb4i-driver/20160106-203040 config: i386-allmodconfig (attached as .config) reproduce: # save the attached .config to linux

Re: [PATCH net-next 3/3] cxgb4i: add iscsi LRO for chelsio t4/t5 adapters

2016-01-06 Thread kbuild test robot
Hi Hariprasad, [auto build test ERROR on net-next/master] url: https://github.com/0day-ci/linux/commits/Hariprasad-Shenai/cxgb4-Add-LRO-infrastructure-for-cxgb4i-driver/20160106-203040 config: i386-allmodconfig (attached as .config) reproduce: # save the attached .config to linux

Re: st driver doesn't seem to grok LTO partitioning

2016-01-06 Thread Laurence Oberman
Thanks Doug Trying that now Laurence Oberman Principal Software Maintenance Engineer Red Hat Global Support Services - Original Message - From: "Douglas Gilbert" To: "Laurence Oberman" , "Emmanuel Florac" Cc:

Re: st driver doesn't seem to grok LTO partitioning

2016-01-06 Thread Emmanuel Florac
Le Wed, 6 Jan 2016 10:23:34 -0500 (EST) Laurence Oberman écrivait: > MaxPartitions: 0 > > Drive is working fine, > > # mt -f /dev/st0 status > SCSI 2 tape drive: > File number=0, block number=0, partition=0. > Tape block size 512 bytes. Density code 0x58 (no translation).

Re: st driver doesn't seem to grok LTO partitioning

2016-01-06 Thread Emmanuel Florac
Le Wed, 6 Jan 2016 17:10:15 +0100 Emmanuel Florac écrivait: > Works OK with LTO-5 (HP). Sizing the partitions is quite difficult, as > you can see. To get one "wrap" in the first partition, "140" and > "1424000" work, but "145" doesn't. Same for LTO-6 (I'm still >

Re: st driver doesn't seem to grok LTO partitioning

2016-01-06 Thread Laurence Oberman
Hello Emanuel I am using this device, its an Ultrium 5 (LTO5) Its an older changer and I am unable to update the firmware, still working on that. What version of mt are you using, as I am testing using a RHEL7.2 base and the upstream patched kernel. Linux example.redhat.com 4.3.3 #1 SMP Tue

Re: st driver doesn't seem to grok LTO partitioning

2016-01-06 Thread Laurence Oberman
Firmware update fails as follows: Still researching. This is the only LTO5 I have access to so unless Shane has one I may not be able to make progress. (Its way long out of warranty and support) We mostly use this for generic st driver and changer testing for RHEL and it has not been updated

Re: st driver doesn't seem to grok LTO partitioning

2016-01-06 Thread Douglas Gilbert
On 16-01-06 10:32 AM, Laurence Oberman wrote: Firmware update fails as follows: Still researching. This is the only LTO5 I have access to so unless Shane has one I may not be able to make progress. (Its way long out of warranty and support) We mostly use this for generic st driver and changer

Re: [PATCH v2, RESEND] Separate target visibility from reaped state information

2016-01-06 Thread James Bottomley
On Wed, 2016-01-06 at 09:24 +0100, Bart Van Assche wrote: > Instead of representing the states "visible in sysfs" and > "has been removed from the target list" by a single state > variable, use two variables to represent this information. > > This patch avoids that SCSI device removal can trigger

Re: [dm-devel] [PATCH 01/35] block/fs/drivers: remove rw argument from submit_bio

2016-01-06 Thread Bart Van Assche
On 01/05/2016 09:53 PM, mchri...@redhat.com wrote: From: Mike Christie This has callers of submit_bio/submit_bio_wait set the bio->bi_rw instead of passing it in. This makes that use the same as generic_make_request and how we set the other bio fields. Reviewed-by: Bart

Re: st driver doesn't seem to grok LTO partitioning

2016-01-06 Thread Emmanuel Florac
Le Mon, 4 Jan 2016 12:46:26 +0100 Emmanuel Florac écrivait: > That works fine for me. I'm going to do some testing with other drives > I have (LTO-3 -- should fail -- and LTO-5). > Works OK with LTO-5 (HP). Sizing the partitions is quite difficult, as you can see. To

Re: st driver doesn't seem to grok LTO partitioning

2016-01-06 Thread Emmanuel Florac
Le Tue, 5 Jan 2016 16:55:04 -0500 (EST) Laurence Oberman écrivait: > mt -f /dev/nst0 mkpartition 1 > What is the type of drive exactly? I still couldn't test with the LTO-5 drive as the machine it's connected to is being reinstalled. --

Re: st driver doesn't seem to grok LTO partitioning

2016-01-06 Thread Laurence Oberman
I left the log of the failure to partition out Here it is # mt -f /dev/nst0 mkpartition 1 /dev/nst0: Input/output error [ 5499.341648] st 0:0:0:0: [st0] Block limits 1 - 16777215 bytes. [ 5499.342903] st 0:0:0:0: [st0] Mode sense. Length 11, medium 0, WBS 10, BLL 8 [ 5499.343523] st 0:0:0:0:

[PATCH v3] ipr: fix out-of-bounds null overwrite

2016-01-06 Thread Insu Yun
Return value of snprintf is not bound by size value, 2nd argument. (https://www.kernel.org/doc/htmldocs/kernel-api/API-snprintf.html). Return value is number of printed chars, can be larger than 2nd argument. Therefore, it can write null byte out of bounds ofbuffer. Since snprintf puts null, it

Re: [PATCH v2 00/16] qla2xxx: Patches for target-pending branch

2016-01-06 Thread Himanshu Madhani
Hi Nic, On 12/20/15, 10:57 PM, "Nicholas A. Bellinger" wrote: >Hi Himanshu & Co, > >On Thu, 2015-12-17 at 14:56 -0500, Himanshu Madhani wrote: >> Hi Nic, >> >> Please apply this series to target-pending at your earliest convenience. >> >> changes from v1 -> v2 >> >> o

Re: [PATCH v2] ipr: fix out-of-bounds null overwrite

2016-01-06 Thread Matthew R. Ochs
On Jan 6, 2016, at 7:53 AM, Insu Yun wrote: > > Return value of snprintf is not bound by size value, 2nd argument. > (https://www.kernel.org/doc/htmldocs/kernel-api/API-snprintf.html). > Return value is number of printed chars, can be larger than 2nd argument. > Therefore, it

Re: st driver doesn't seem to grok LTO partitioning

2016-01-06 Thread Emmanuel Florac
Le Mon, 4 Jan 2016 12:22:34 +0200 (EET) Kai Makisara écrivait: > The patch has been tested with my DDS-4 drive. Oh BTW, may be you could correct this one while you're at it :) I don't think my kernel is so old... :) ~# mt -f /dev/st0 stshowopt Your kernel (3.18.25)

[PATCH V2 5/9] aacraid: Set correct msix count for EEH recovery

2016-01-06 Thread Raghava Aditya Renukunta
From: Raghava Aditya Renukunta During EEH recovery number of online CPU's might change thereby changing the number of MSIx vectors. Since each fib is allocated to a vector, changes in the number of vectors causes fib to be sent thru invalid vectors.In addition

[PATCH V2 0/9] aacraid: Patchset for aacraid driver version 41052

2016-01-06 Thread Raghava Aditya Renukunta
This patchset includes the following changes (bug fixes and new feature support) specific to aacraid driver. V2: Removed aac_fib_free_tag function Setup relevant fib variables only once Created aac_fib_vector_assign function Made EEH functions static Added character device status macros changed

[PATCH V2 2/9] aacraid: Fix RRQ overload

2016-01-06 Thread Raghava Aditya Renukunta
From: Raghava Aditya Renukunta The driver utilizes an array of atomic variables to keep track of IO submissions to each vector. To submit an IO multiple threads iterate through the array to find a vector which has empty slots to send an IO. The reading and

[PATCH V2 6/9] aacraid: Fundamental reset support for Series 7

2016-01-06 Thread Raghava Aditya Renukunta
From: Raghava Aditya Renukunta Series 7 does not support PCI hot reset used by EEH. Enabled fundamental reset only for Series 7 Changes in V2: None Signed-off-by: Raghava Aditya Renukunta Reviewed-by: Johannes Thumshirn

[PATCH V2 1/9] aacraid: SCSI blk tag support

2016-01-06 Thread Raghava Aditya Renukunta
From: Raghava Aditya Renukunta The method to allocate and free FIB's in the present code utilizes spinlocks.Multiple IO's have to wait on the spinlock to acquire or free fibs creating a performance bottleneck. An alternative solution would be to use block layer

Re: [PATCH 02/35] block: add REQ_OP definitions and bi_op/op fields

2016-01-06 Thread Martin K. Petersen
> "Mike" == mchristi writes: +enum req_op { + REQ_OP_READ, + REQ_OP_WRITE= REQ_WRITE, + REQ_OP_DISCARD = REQ_DISCARD, + REQ_OP_WRITE_SAME = REQ_WRITE_SAME, +}; + I have been irked by the REQ_ prefix in bios since the

RE: [PATCH V2 0/9] aacraid: Patchset for aacraid driver version 41052

2016-01-06 Thread Raghava Aditya Renukunta
Hello Martin, > -Original Message- > From: Martin K. Petersen [mailto:martin.peter...@oracle.com] > Sent: Monday, January 4, 2016 6:08 PM > To: Raghava Aditya Renukunta > Cc: jbottom...@parallels.com; linux-scsi@vger.kernel.org; Mahesh > Rajashekhara; Murthy Bhat; zzzSantosh Akula; Gana

[PATCH V2 9/9] aacraid: Update driver version

2016-01-06 Thread Raghava Aditya Renukunta
From: Raghava Aditya Renukunta Updated diver version to 41052 Changes in V2: None Signed-off-by: Raghava Aditya Renukunta Reviewed-by: Johannes Thumshirn --- drivers/scsi/aacraid/aacraid.h | 2 +- 1 file

[PATCH V2 4/9] aacraid: Fix memory leak in aac_fib_map_free

2016-01-06 Thread Raghava Aditya Renukunta
From: Raghava Aditya Renukunta aac_fib_map_free() calls pci_free_consistent() without checking that dev->hw_fib_va is not NULL and dev->max_fib_size is not zero.If they are indeed NULL/0, this will result in a hang as pci_free_consistent() will attempt to

[PATCH V2 3/9] aacraid: Added EEH support

2016-01-06 Thread Raghava Aditya Renukunta
From: Raghava Aditya Renukunta Added support for PCI EEH(extended error handling). Changes in V2: Made local functions static Removed call to aac_fib_free_tag Set adapter_shutdown flag when PCI error detected Signed-off-by: Raghava Aditya Renukunta

[PATCH V2 8/9] aacraid: Fix character device re-initialization

2016-01-06 Thread Raghava Aditya Renukunta
From: Raghava Aditya Renukunta During EEH PCI hotplug activity kernel unloads and loads the driver, causing character device to be unregistered(aac_remove_one).When the driver is loaded back using aac_probe_one the character device needs to be registered again

[PATCH V2 7/9] aacraid: Fix AIF triggered IOP_RESET

2016-01-06 Thread Raghava Aditya Renukunta
From: Raghava Aditya Renukunta while driver removal is in progress or PCI shutdown is invoked, driver kills AIF aacraid thread, but IOCTL requests from the management tools re-start AIF thread leading to IOP_RESET. Fixed by setting adapter_shutdown flag when

Re: [PATCH 00/35 v2] separate operations from flags in the bio/request structs

2016-01-06 Thread Martin K. Petersen
> "Mike" == mchristi writes: Mike> The following patches begin to cleanup the request->cmd_flags and bio-> bi_rw mess. We currently use cmd_flags to specify the operation, Mike> attributes and state of the request. For bi_rw we use it for Mike> similar info and also the

Re: [PATCH 13/35] xfs: set bi_op to REQ_OP

2016-01-06 Thread Dave Chinner
On Tue, Jan 05, 2016 at 02:53:16PM -0600, mchri...@redhat.com wrote: > From: Mike Christie > > This patch has xfs set the bio bi_op to a REQ_OP, and > rq_flag_bits to bi_rw. > > Note: > I have run xfs tests on these btrfs patches. There were some failures > with and without

Re: [PATCH v2 0/6] cxlflash: Miscellaneous fixes and updates

2016-01-06 Thread Martin K. Petersen
> "Uma" == Uma Krishnan writes: Uma> This patch set contains miscellaneous fixes and adds support for a Uma> future IBM CXL adapter. This series is intended for 4.5 and is Uma> bisectable. Please reference the changelog below for details on Uma> what has been

Re: [PATCH 00/35 v2] separate operations from flags in the bio/request structs

2016-01-06 Thread Dave Chinner
On Wed, Jan 06, 2016 at 08:40:09PM -0500, Martin K. Petersen wrote: > > "Mike" == mchristi writes: > > Mike> The following patches begin to cleanup the request->cmd_flags and > bio-> bi_rw mess. We currently use cmd_flags to specify the operation, > Mike> attributes and

Re: [PATCH v4 00/78] More fixes, cleanup and modernization for NCR5380 drivers

2016-01-06 Thread Martin K. Petersen
> "Finn" == Finn Thain writes: Finn> Like my previous work on the NCR5380 drivers, this patch series Finn> has bug fixes, code cleanup and modernization. These drivers Finn> suffer from mistakes, poor style and neglect and this long series Finn> addresses the

Re: [PATCH 1/1] mvsas: add SGPIO support to Marvell 94xx

2016-01-06 Thread Martin K. Petersen
> "Wilfried" == Wilfried Weissmann writes: Wilfried> add SGPIO support to Marvell 94xx Applied to 4.5/scsi-queue. Thanks! -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of

Re: [PATCH v2 00/16] qla2xxx: Patches for target-pending branch

2016-01-06 Thread Nicholas A. Bellinger
On Wed, 2016-01-06 at 17:00 +, Himanshu Madhani wrote: > Hi Nic, > > > On 12/20/15, 10:57 PM, "Nicholas A. Bellinger" wrote: > > >Hi Himanshu & Co, > > > >On Thu, 2015-12-17 at 14:56 -0500, Himanshu Madhani wrote: > >> Hi Nic, > >> > >> Please apply this series to

Re: [PATCH 25/35] target: set bi_op to REQ_OP

2016-01-06 Thread Nicholas A. Bellinger
Hi Mike, On Tue, 2016-01-05 at 14:53 -0600, mchri...@redhat.com wrote: > From: Mike Christie > > This patch has the target modules set the bio bi_op to a REQ_OP, and > rq_flag_bits to bi_rw. > > This patch is compile tested only. > > Signed-off-by: Mike Christie

Re: [PATCH] scsi: mvsas: fix indenting on return error code

2016-01-06 Thread Martin K. Petersen
> "Colin" == Colin King writes: Colin, Colin> The return code and error return is incorrectly indented which Colin> may cause some confusion as it appears at first sight to be Colin> associated with a device not ready error (with missing { } Colin> braces) rather

Re: [PATCH v2, RESEND] Separate target visibility from reaped state information

2016-01-06 Thread Sebastian Herbszt
James Bottomley wrote: > On Wed, 2016-01-06 at 09:24 +0100, Bart Van Assche wrote: > > Instead of representing the states "visible in sysfs" and > > "has been removed from the target list" by a single state > > variable, use two variables to represent this information. > > > > This patch avoids

Re: [PATCH v3 0/4] scsi: cleanup ioctl headers and provide UAPI versions

2016-01-06 Thread Martin K. Petersen
> "Paolo" == Paolo Bonzini writes: >> This is v3 of the series to provide an "official" sg.h header (and >> scsi_ioctl.h too, though it's basically obsolete) together with the >> other userspace API definitions. The change from v2 to v3 is that >> defaults for sg.c are

Re: [PATCH V4 0/4] scsi: storvsc: Properly support FC hosts

2016-01-06 Thread Martin K. Petersen
> "KYS" == K Y Srinivasan writes: The template discussion appears to have lost momentum and since the concerns were minor I have applied your latest series to 4.5/scsi-queue. -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the