Re: [PATCH 15/36] scsi_dh_alua: Make stpg synchronous

2015-10-02 Thread Bart Van Assche
On 09/29/2015 03:47 AM, Hannes Reinecke wrote: The 'activate_complete' function needs to be executed after stpg has finished, so we can as well execute stpg synchronously and call the function directly. Hello Hannes, Another patch in this series moves invocation of the STPG commands to the co

Re: [PATCH] storvsc: use small sg_tablesize on x86

2015-10-02 Thread Olaf Hering
On Thu, Oct 01, James Bottomley wrote: > On Thu, 2015-10-01 at 20:30 +, KY Srinivasan wrote: > > > +#if defined(CONFIG_X86_32) > Um, this is a bit architecture specific (I know Azure is x86, but > still). Can you make the define check CONFIG_32BIT rather than > CONFIG_X86_32? According to

Re: [PATCH 16/36] scsi_dh_alua: call alua_rtpg() if stpg fails

2015-10-02 Thread Bart Van Assche
On 09/29/2015 03:47 AM, Hannes Reinecke wrote: If the call to SET TARGET PORT GROUPS fails we have no idea what state the array is left in, so we need to issue a call to REPORT TARGET PORT GROUPS in these cases. Signed-off-by: Hannes Reinecke Reviewed-by: Bart Van Assche -- To unsubscribe fr

Re: [PATCH v5 00/34] cxlflash: Miscellaneous bug fixes and corrections

2015-10-02 Thread Matthew R. Ochs
Hi James, This series has been fairly well vetted. With cxlflash being a new driver the majority of these patches fix critical bugs. Is there anything else you're looking for in order to get this set pulled into 4.3-rc? -matt > On Oct 1, 2015, at 10:52 AM, Matthew R. Ochs > wrote: > > This

Re: Limit max concurrent sessions

2015-10-02 Thread Bernd Schubert
On 09/27/2015 12:28 PM, Gionatan Danti wrote: > Il 23-09-2015 17:18 Emmanuel Florac ha scritto: >> >> Use XFS. XFS won't let you mount it several time on different machines >> without various "force" options. >> Alternatively, use a cluster-aware FS like ocfs2. Ocfs2 is quite easy >> to set up. >

Re: Limit max concurrent sessions

2015-10-02 Thread Emmanuel Florac
Le Sun, 27 Sep 2015 12:28:41 +0200 Gionatan Danti écrivait: > Il 23-09-2015 17:18 Emmanuel Florac ha scritto: > > > > Use XFS. XFS won't let you mount it several time on different > > machines without various "force" options. > > Alternatively, use a cluster-aware FS like ocfs2. Ocfs2 is quite >

Re: [PATCH 14/36] scsi_dh_alua: separate out alua_stpg()

2015-10-02 Thread Bart Van Assche
On 10/01/2015 11:06 PM, Hannes Reinecke wrote: On 10/02/2015 02:07 AM, Bart Van Assche wrote: The old implementation calls the callback function 'fn' if the flag TPGS_MODE_EXPLICIT has not been set but the new implementation not. Please mention this in the patch description if this behavior chan

Re: Bugs in multipath scsi in 4.3-rc2

2015-10-02 Thread James Bottomley
On Fri, 2015-10-02 at 15:34 +0200, Christoph Hellwig wrote: > On Fri, Oct 02, 2015 at 06:25:01AM -0700, James Bottomley wrote: > > That doesn't matter: if you modprobe alua after all devices are > > discovered, it will attach correctly to all potential devices from the > > alua module_init. This m

Re: Bugs in multipath scsi in 4.3-rc2

2015-10-02 Thread Christoph Hellwig
On Fri, Oct 02, 2015 at 06:25:01AM -0700, James Bottomley wrote: > That doesn't matter: if you modprobe alua after all devices are > discovered, it will attach correctly to all potential devices from the > alua module_init. This means the effect is the same whether the > request_module is sync or

Re: Bugs in multipath scsi in 4.3-rc2

2015-10-02 Thread James Bottomley
On Fri, 2015-10-02 at 14:56 +0200, Christoph Hellwig wrote: > On Wed, Sep 30, 2015 at 03:34:54PM -0700, James Bottomley wrote: > > Perhaps we don't have to be that draconian. There's no real reason we > > can't autoload asynchronously. If the module isn't ready by the time we > > come to check th

Re: [PATCH] SCSI: Fix hard lockup in scsi_remove_target()

2015-10-02 Thread Christoph Hellwig
On Fri, Oct 02, 2015 at 03:09:33PM +0200, Johannes Thumshirn wrote: > Having the list_move() outside of the host_lock was purely by > accident. Interestingly the stressing didn't mind it. But yes you're > right, __scsi_remove_target() should be made host_lock() save for being > called under the hos

Re: [PATCH v5 10/34] cxlflash: Make functions static

2015-10-02 Thread Tomas Henzl
On 1.10.2015 17:55, Matthew R. Ochs wrote: > Found during code inspection, that the following functions are not > being used outside of the file where they are defined. Make them static. > > int cxlflash_send_cmd(struct afu *, struct afu_cmd *); > void cxlflash_wait_resp(struct afu *, struct afu_cm

Re: [PATCH v5 09/34] cxlflash: Correct naming of limbo state and waitq

2015-10-02 Thread Tomas Henzl
On 1.10.2015 17:55, Matthew R. Ochs wrote: > Limbo is not an accurate representation of this state and is > also not consistent with the terminology that other drivers > use to represent this concept. Rename the state and and its > associated waitq to 'reset'. > > Signed-off-by: Matthew R. Ochs >

Re: [PATCH v5 08/34] cxlflash: Fix to avoid CXL services during EEH

2015-10-02 Thread Tomas Henzl
On 1.10.2015 17:55, Matthew R. Ochs wrote: > During an EEH freeze event, certain CXL services should not be > called until after the hardware reset has taken place. Doing so > can result in unnecessary failures and possibly cause other ill > effects by triggering hardware accesses. This translates

Re: [PATCH] SCSI: Fix hard lockup in scsi_remove_target()

2015-10-02 Thread Johannes Thumshirn
Christoph Hellwig writes: >> -list_for_each_entry(starget, &shost->__targets, siblings) { >> +list_for_each_entry_safe(starget, tmp, &shost->__targets, siblings) { >> if (starget->state == STARGET_DEL) >> continue; >> if (starget->dev.parent

Re: [PATCH v5 07/34] cxlflash: Fix context encode mask width

2015-10-02 Thread Tomas Henzl
On 1.10.2015 17:55, Matthew R. Ochs wrote: > The context encode mask covers more than 32-bits, making it > a long integer. This should be noted by appending the ULL > width suffix to the mask. > > Signed-off-by: Matthew R. Ochs > Signed-off-by: Manoj N. Kumar > Reviewed-by: Brian King > Reviewed

Re: [PATCH v5 06/34] cxlflash: Fix to avoid sizeof(bool)

2015-10-02 Thread Tomas Henzl
On 1.10.2015 17:55, Matthew R. Ochs wrote: > Using sizeof(bool) is considered poor form for various reasons and > sparse warns us of that. Correct by changing type from bool to u8. > > Signed-off-by: Matthew R. Ochs > Signed-off-by: Manoj N. Kumar > Reviewed-by: Brian King > Reviewed-by: Daniel

Re: [PATCH v5 05/34] cxlflash: Fix data corruption when vLUN used over multiple cards

2015-10-02 Thread Tomas Henzl
On 1.10.2015 17:55, Matthew R. Ochs wrote: > If the same virtual LUN is accessed over multiple cards, only accesses > made over the first card will be valid. Accesses made over the second > card will go to the wrong LUN causing data corruption. > > This is because the global LUN's mode word was bei

Re: Bugs in multipath scsi in 4.3-rc2

2015-10-02 Thread Christoph Hellwig
On Wed, Sep 30, 2015 at 03:34:54PM -0700, James Bottomley wrote: > Perhaps we don't have to be that draconian. There's no real reason we > can't autoload asynchronously. If the module isn't ready by the time we > come to check the attachment, then it will attach to the device later > when the mod

Re: [PATCH v5 04/34] cxlflash: Fix potential oops following LUN removal

2015-10-02 Thread Tomas Henzl
On 1.10.2015 17:55, Matthew R. Ochs wrote: > When a LUN is removed, the sdev that is associated with the LUN > remains intact until its reference count drops to 0. In order > to prevent an sdev from being removed while a context is still > associated with it, obtain an additional reference per-cont

Re: Bugs in multipath scsi in 4.3-rc2

2015-10-02 Thread Christoph Hellwig
On Thu, Oct 01, 2015 at 02:34:54PM +1000, Paul Mackerras wrote: > I still get the warning: Ok, I sent you the wrong patch. scsi_dh_add_device is the function that needs to switch to use __scsi_dh_lookup. New version below: diff --git a/drivers/scsi/scsi_dh.c b/drivers/scsi/scsi_dh.c index edb04

Re: [PATCH] SCSI: Fix hard lockup in scsi_remove_target()

2015-10-02 Thread Christoph Hellwig
> - list_for_each_entry(starget, &shost->__targets, siblings) { > + list_for_each_entry_safe(starget, tmp, &shost->__targets, siblings) { > if (starget->state == STARGET_DEL) > continue; > if (starget->dev.parent == dev || &starget->dev == d

Re: [PATCH v5 03/34] cxlflash: Fix read capacity timeout

2015-10-02 Thread Tomas Henzl
On 1.10.2015 17:54, Matthew R. Ochs wrote: > From: Manoj Kumar > > The timeout value for read capacity is too small. Certain devices > may take longer to respond and thus the command may prematurely > timeout. Additionally the literal used for the timeout is stale. > > Update the timeout to 30 sec

Re: [PATCH v5 02/34] cxlflash: Replace magic numbers with literals

2015-10-02 Thread Tomas Henzl
On 1.10.2015 17:54, Matthew R. Ochs wrote: > From: Manoj Kumar > > Magic numbers are not meaningful and can create confusion. As a > remedy, replace them with descriptive literals. > > Replace 512 with literal MAX_SECTOR_UNIT. > Replace 5 with literal CMD_RETRIES. > > Signed-off-by: Matthew R. Och

Re: [PATCH v5 01/34] cxlflash: Fix to avoid invalid port_sel value

2015-10-02 Thread Tomas Henzl
On 1.10.2015 17:54, Matthew R. Ochs wrote: > From: Manoj Kumar > > If two concurrent MANAGE_LUN ioctls are issued with the same > WWID parameter, it would result in an incorrect value of port_sel. > > This is because port_sel is modified without any locks being > held. If the first caller stalls a

Re: [PATCH] be2iscsi: Fix bad WARN_ON

2015-10-02 Thread Tomas Henzl
On 2.10.2015 02:52, Joel Stanley wrote: > On Thu, Oct 1, 2015 at 6:01 PM, Johannes Thumshirn wrote: >>> diff --git a/drivers/scsi/be2iscsi/be_main.c >>> b/drivers/scsi/be2iscsi/be_main.c >>> index 7a6dbfb..0b87abb 100644 >>> --- a/drivers/scsi/be2iscsi/be_main.c >>> +++ b/drivers/scsi/be2iscsi/be

Re: [PATCH 4/5] block: mtip32xx: simplify ida usage

2015-10-02 Thread Johannes Thumshirn
Lee Duncan writes: > Simplify ida index allocation and removal by > using the ida_simple_* helper functions > > Signed-off-by: Lee Duncan > --- > drivers/block/mtip32xx/mtip32xx.c | 26 ++ > 1 file changed, 6 insertions(+), 20 deletions(-) > > diff --git a/drivers/block/

Re: [PATCH 5/5] base: soc: siplify ida usage

2015-10-02 Thread Johannes Thumshirn
Lee Duncan writes: > Simplify ida index allocation and removal by > using the ida_simple_* helper functions > > Signed-off-by: Lee Duncan > --- > drivers/base/soc.c | 21 + > 1 file changed, 5 insertions(+), 16 deletions(-) > > diff --git a/drivers/base/soc.c b/drivers/base/

Re: [PATCH 2/5] block: rsxx: core: simplify ida usage

2015-10-02 Thread Johannes Thumshirn
Lee Duncan writes: > Simplify ida index allocation and removal by > using the ida_simple_* helper functions. > > Signed-off-by: Lee Duncan > --- > drivers/block/rsxx/core.c | 20 > 1 file changed, 4 insertions(+), 16 deletions(-) > > diff --git a/drivers/block/rsxx/core.c b

Re: [PATCH 3/5] block: nvme-core: simplify ida usage

2015-10-02 Thread Johannes Thumshirn
Lee Duncan writes: > Simplify ida index allocation and removal by > using the ida_simple_* helper functions. > > Signed-off-by: Lee Duncan > --- > drivers/block/nvme-core.c | 16 > 1 file changed, 4 insertions(+), 12 deletions(-) > > diff --git a/drivers/block/nvme-core.c b/dri

Re: [PATCH 1/5] SCSI: sd: simplify ida usage

2015-10-02 Thread Johannes Thumshirn
Lee Duncan writes: > Simplify ida index allocation and removal by > using the ida_simple_* helper functions. > > Signed-off-by: Lee Duncan > --- > drivers/scsi/sd.c | 22 +- > 1 file changed, 5 insertions(+), 17 deletions(-) > > diff --git a/drivers/scsi/sd.c b/drivers/scsi/

Re: [PATCH] SCSI: Fix hard lockup in scsi_remove_target()

2015-10-02 Thread Hannes Reinecke
On 10/02/2015 10:21 AM, Johannes Thumshirn wrote: > Removing a SCSI target via scsi_remove_target() suspected to be racy. When a > sibling get's removed from the list it can occassionly happen that one CPU is > stuck endlessly looping around this code block > > list_for_each_entry(starget, &shost-

[PATCH] SCSI: Fix hard lockup in scsi_remove_target()

2015-10-02 Thread Johannes Thumshirn
Removing a SCSI target via scsi_remove_target() suspected to be racy. When a sibling get's removed from the list it can occassionly happen that one CPU is stuck endlessly looping around this code block list_for_each_entry(starget, &shost->__targets, siblings) { if (starget->state == STARGE

Re: [PATCH] [SCSI] FlashPoint: fix build warning

2015-10-02 Thread Sudip Mukherjee
On Wed, Sep 16, 2015 at 08:47:43AM -0600, Khalid Aziz wrote: > On 09/16/2015 08:06 AM, Sudip Mukherjee wrote: > >We have been getting a warning about non ANSI function. > >warning: non-ANSI function declaration of function 'FPT_SccbMgrTableInitAll' > > > >Signed-off-by: Sudip Mukherjee > >--- > >

Re: [PATCH v2] be2iscsi: Fix bad WARN_ON

2015-10-02 Thread Johannes Thumshirn
Joel Stanley writes: > GCC 5 helpfully warns us that the WARN_ON check may be buggy: > > drivers/scsi/be2iscsi/be_main.c: In function ‘be_sgl_create_contiguous’: > drivers/scsi/be2iscsi/be_main.c:3187:18: warning: logical not is only > applied to the left hand side of comparison [-Wlogical-not-pa

Re: [PATCH] [SCSI] fnic: use kzalloc in fnic_fcoe_process_vlan_resp

2015-10-02 Thread Johannes Thumshirn
Rasmus Villemoes writes: > This saves a little .text and avoids the sizeof(...) style > inconsistency. > > Signed-off-by: Rasmus Villemoes > --- > drivers/scsi/fnic/fnic_fcs.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/scsi/fnic/fnic_fcs.c b/drivers/scsi