Re: [PATCH 6/6] Invalidate VPD page data

2014-03-18 Thread Hannes Reinecke
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03/17/2014 11:11 PM, Jeremy Linton wrote: On 3/15/2014 3:51 AM, Hannes Reinecke wrote: Add a flag 'vpd_invalid' to the SCSI device to indicate that the VPD data needs to be refreshed. This is required if either a manual rescan is triggered or

[PATCH] [RESEND] [SCSI] NCR5380: remove deprecated IRQF_DISABLED

2014-03-18 Thread Michael Opdenacker
This patch removes the use of the IRQF_DISABLED flag from drivers/scsi/NCR5380.c It's a NOOP since 2.6.35 and it will be removed one day. Signed-off-by: Michael Opdenacker michael.opdenac...@free-electrons.com --- drivers/scsi/NCR5380.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH] [RESEND] [SCSI] aacraid: remove deprecated IRQF_DISABLED

2014-03-18 Thread Michael Opdenacker
This patch removes the use of IRQF_DISABLED from code in drivers/scsi/aacraid/ It's a NOOP since 2.6.35 and it will be removed one day. Signed-off-by: Michael Opdenacker michael.opdenac...@free-electrons.com --- drivers/scsi/aacraid/rx.c | 2 +- drivers/scsi/aacraid/sa.c | 3 +--

[PATCH] [RESEND] [SCSI] aha152x: remove deprecated IRQF_DISABLED

2014-03-18 Thread Michael Opdenacker
This patch removes the use of the IRQF_DISABLED flag from drivers/scsi/aha152x.c It's a NOOP since 2.6.35 and it will be removed one day. Also taking the opportunity to fix checkpatch issues on the lines I modified Signed-off-by: Michael Opdenacker michael.opdenac...@free-electrons.com ---

[PATCH] [RESEND] [SCSI] aic7xxx: remove duplicate define

2014-03-18 Thread Michael Opdenacker
Remove duplicate define in drivers/scsi/aic7xxx/aicasm/aicasm_insformat.h Signed-off-by: Michael Opdenacker michael.opdenac...@free-electrons.com Acked-by: Hannes Reinecke h...@suse.de --- drivers/scsi/aic7xxx/aicasm/aicasm_insformat.h | 1 - 1 file changed, 1 deletion(-) diff --git

[PATCH] [RESEND] [SCSI] eata: remove deprecated IRQF_DISABLED

2014-03-18 Thread Michael Opdenacker
This patch removes the use of the IRQF_DISABLED flag from drivers/scsi/eata* It's a NOOP since 2.6.35 and it will be removed one day. Signed-off-by: Michael Opdenacker michael.opdenac...@free-electrons.com --- drivers/scsi/eata.c | 2 +- drivers/scsi/eata_pio.c | 4 ++-- 2 files changed, 3

[PATCH] [RESEND] [SCSI] ibmvstgt: remove deprecated IRQF_DISABLED

2014-03-18 Thread Michael Opdenacker
This patch removes the use of the IRQF_DISABLED flag from drivers/scsi/ibmvscsi/ibmvstgt.c It's a NOOP since 2.6.35 and it will be removed one day. Signed-off-by: Michael Opdenacker michael.opdenac...@free-electrons.com --- drivers/scsi/ibmvscsi/ibmvstgt.c | 2 +- 1 file changed, 1

[PATCH] [RESEND] [SCSI] u14-34f: remove deprecated IRQF_DISABLED

2014-03-18 Thread Michael Opdenacker
This patch removes the the use of the IRQF_DISABLED flag from drivers/scsi/u14-34f.c It's a NOOP since 2.6.35 and it will be removed one day. Signed-off-by: Michael Opdenacker michael.opdenac...@free-electrons.com --- drivers/scsi/u14-34f.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH] [RESEND] [SCSI] wd7000: remove deprecated IRQF_DISABLED

2014-03-18 Thread Michael Opdenacker
This patch removes the use of the IRQF_DISABLED flag from drivers/scsi/wd7000.c It's a NOOP since 2.6.35 and it will be removed one day. Signed-off-by: Michael Opdenacker michael.opdenac...@free-electrons.com --- drivers/scsi/wd7000.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH] [RESEND] [SCSI] misc drivers: remove deprecated IRQF_DISABLED

2014-03-18 Thread Michael Opdenacker
This patch removes the use of the IRQF_DISABLED flag in several drivers in drivers/scsi/ It's a NOOP since 2.6.35 and it will be removed one day. Signed-off-by: Michael Opdenacker michael.opdenac...@free-electrons.com --- drivers/scsi/dtc.c| 2 +-

[PATCH] Target/iser: Fail SCSI WRITE command if device detected integrity error

2014-03-18 Thread Sagi Grimberg
If during data-transfer a data-integrity error was detected we must fail the command with CHECK_CONDITION and not execute the command. Signed-off-by: Sagi Grimberg sa...@mellanox.com --- drivers/infiniband/ulp/isert/ib_isert.c |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-)

Re: [PATCH 00/12] scsi/NCR5380: fix debugging macros and #include structure

2014-03-18 Thread Finn Thain
On Mon, 17 Mar 2014, Joe Perches wrote: My preference would be to change dprintk to scsi_dbg Can you be more specific? I gather you're not referring to the debugging routines in include/scsi/scsi_dbg.h as they aren't equivalent. Is it the name dprintk you object to? I went looking in

Re: [v3.13][v3.14][Regression] kthread: makekthread_create()killable

2014-03-18 Thread Tetsuo Handa
Oleg Nesterov wrote: If we need the urgent hack to fix the regression, then I suggest to change scsi_host_alloc() temporary until mptsas (or whatever) is fixed. Device initialization taking longer than 30 seconds is possible and is not a hang up. It is systemd which needs to be fixed. ---

Re: [PATCH 00/12] scsi/NCR5380: fix debugging macros and #include structure

2014-03-18 Thread Geert Uytterhoeven
On Tue, Mar 18, 2014 at 1:45 PM, Joe Perches j...@perches.com wrote: NCR does use pr_debug for the dprintk call, but it also doesn't verify fmt/arg matching when not compiled in drivers/scsi/NCR5380.h-#if NDEBUG drivers/scsi/NCR5380.h:#define dprintk(flg, fmt, args...) \

Re: [PATCH v1] Target/iser: Fail SCSI WRITE command if device detected integrity error

2014-03-18 Thread Or Gerlitz
On 18/03/2014 14:52, Sagi Grimberg wrote: If during data-transfer a data-integrity error was detected we must fail the command with CHECK_CONDITION and not execute the command. Cnages from v0: - Added reported-by Or gerlitz Signed-off-by: Sagi Grimbergsa...@mellanox.com Reported-by: Or

[PATCH v2] Target/iser: Fail SCSI WRITE command if device detected integrity error

2014-03-18 Thread Sagi Grimberg
If during data-transfer a data-integrity error was detected we must fail the command with CHECK_CONDITION and not execute the command. Signed-off-by: Sagi Grimberg sa...@mellanox.com Reported-by: Or Gerlitz ogerl...@mellanox.com --- Changes from v1: - Fixed typo Changes from v0: - Added

GOOGLE Gewinnbenachrichtigung!!!

2014-03-18 Thread GOOGLE Gewinnbenachrichtigung!!!
GOOGLE INTERNATIONALE Förderung-GEWINNZUTEILUNG GOOGLE Förderung GOOGLE Einarbeitung© UROPA INTERLOTTO/EUROMILLINEN LOTTO BONUS-PROGRAMM BEL-GRAVE HOUSE, 76 BUCKINGHAM PALACE ROAD, LONDON SW1W 9TQ, UNITED KINGDOM.OFFICE; VOM SCHREIBTISCH VON VICE PRESIDENT INTERNATIONAL

Re: [PATCH 00/12] scsi/NCR5380: fix debugging macros and #include structure

2014-03-18 Thread Joe Perches
On Tue, 2014-03-18 at 13:55 +0100, Geert Uytterhoeven wrote: On Tue, Mar 18, 2014 at 1:45 PM, Joe Perches j...@perches.com wrote: Hi Geert. #define dprintk(flg, fmt, ...) \ do { if (0) pr_debug(fmt, ##__VA_ARGS__); } while (0) Na, no_printk(): #define dprintk(flg, fmt, ...)

Re: [PATCH 00/12] scsi/NCR5380: fix debugging macros and #include structure

2014-03-18 Thread Geert Uytterhoeven
Hi Joe, On Tue, Mar 18, 2014 at 2:07 PM, Joe Perches j...@perches.com wrote: On Tue, 2014-03-18 at 13:55 +0100, Geert Uytterhoeven wrote: On Tue, Mar 18, 2014 at 1:45 PM, Joe Perches j...@perches.com wrote: #define dprintk(flg, fmt, ...) \ do { if (0) pr_debug(fmt, ##__VA_ARGS__); } while

Re: [PATCH 6/6] Invalidate VPD page data

2014-03-18 Thread James Bottomley
On Tue, 2014-03-18 at 07:52 +0100, Hannes Reinecke wrote: On 03/17/2014 11:11 PM, Jeremy Linton wrote: On 3/15/2014 3:51 AM, Hannes Reinecke wrote: Add a flag 'vpd_invalid' to the SCSI device to indicate that the VPD data needs to be refreshed. This is required if either a manual rescan

Re: [PATCH 00/12] scsi/NCR5380: fix debugging macros and #include structure

2014-03-18 Thread Joe Perches
On Tue, 2014-03-18 at 14:13 +0100, Geert Uytterhoeven wrote: no_printk keeps all side effects like performing any function calls made by the statement or accessing any volatiles. That's true... Using do { if (0) no_printk(fmt, ##__VA_ARGS__); } while (0) does not have any

BLIST_SINGLELUN

2014-03-18 Thread Christoph Hellwig
Does anyone still have a device listed in the blacklist with BLIST_SINGLELUN? From reading the source code I'm not sure the code actually works as expected currently, or did for a long time. While scsi_target_queue_ready makes sure to only queue commands to the right lun as long as

RE: [PATCH 6/6] Invalidate VPD page data

2014-03-18 Thread Elliott, Robert (Server Storage)
On 03/17/2014 11:11 PM, Jeremy Linton wrote: I didn't study the whole code path but does the VPD data get updated on a 6/2900? I suspect it should be. I can imagine a number of cases where the luns changed check condition gets preempted/lost by a device reset. I guess much of that

Re: [PATCH v6 1/3] libata, libsas: kill pm_result and related cleanup

2014-03-18 Thread Tejun Heo
On Fri, Mar 14, 2014 at 01:52:48PM -0700, Dan Williams wrote: Tejun says: At least for libata, worrying about suspend/resume failures don't make whole lot of sense. If suspend failed, just proceed with suspend. If the device can't be woken up afterwards, that's that. There isn't

Re: [PATCH v6 1/3] libata, libsas: kill pm_result and related cleanup

2014-03-18 Thread Dan Williams
On Tue, Mar 18, 2014 at 9:03 AM, Tejun Heo t...@kernel.org wrote: On Fri, Mar 14, 2014 at 01:52:48PM -0700, Dan Williams wrote: Tejun says: At least for libata, worrying about suspend/resume failures don't make whole lot of sense. If suspend failed, just proceed with suspend. If the

Re: [v3.13][v3.14][Regression] kthread: makekthread_create()killable

2014-03-18 Thread Oleg Nesterov
On 03/18, Tetsuo Handa wrote: Oleg Nesterov wrote: If we need the urgent hack to fix the regression, then I suggest to change scsi_host_alloc() temporary until mptsas (or whatever) is fixed. Device initialization taking longer than 30 seconds is possible and is not a hang up. It is

[PATCH] ata: Fix compiler warning with APM X-Gene host controller driver

2014-03-18 Thread Loc Ho
This patch fixes an compiler warning with APM X-Gene host controller driver when compiled with DEBUG enabled. Signed-off-by: Loc Ho l...@apm.com --- drivers/ata/ahci_xgene.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/ata/ahci_xgene.c

Re: [PATCH] ata: Fix compiler warning with APM X-Gene host controller driver

2014-03-18 Thread Tejun Heo
On Tue, Mar 18, 2014 at 12:14:37PM -0600, Loc Ho wrote: This patch fixes an compiler warning with APM X-Gene host controller driver when compiled with DEBUG enabled. Signed-off-by: Loc Ho l...@apm.com Applied to libata/for-3.15. Thanks. -- tejun -- To unsubscribe from this list: send the

Re: [PATCH v6 1/3] libata, libsas: kill pm_result and related cleanup

2014-03-18 Thread Tejun Heo
On Fri, Mar 14, 2014 at 01:52:48PM -0700, Dan Williams wrote: Tejun says: At least for libata, worrying about suspend/resume failures don't make whole lot of sense. If suspend failed, just proceed with suspend. If the device can't be woken up afterwards, that's that. There isn't

[PATCH] scsi: lpfc: lpfc_init: use kcalloc for allocating memory

2014-03-18 Thread Matei Oprea
It's easier to use kcalloc for allocating arrays. While at it also remove useless casting value. Signed-off-by: Matei Oprea e...@opreamatei.ro Cc: ROSEdu Kernel Community fire...@lists.rosedu.org --- drivers/scsi/lpfc/lpfc_init.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

Re: [PATCH 00/12] scsi/NCR5380: fix debugging macros and #include structure

2014-03-18 Thread Finn Thain
On Tue, 18 Mar 2014, Joe Perches wrote: On Tue, 2014-03-18 at 13:55 +0100, Geert Uytterhoeven wrote: #define dprintk(flg, fmt, ...) no_printk(fmt, ##__VA_ARGS__) Fine, but with a correction. no_printk keeps all side effects like performing any function calls made by the statement

Re: [PATCH 00/12] scsi/NCR5380: fix debugging macros and #include structure

2014-03-18 Thread Joe Perches
On Wed, 2014-03-19 at 10:14 +1100, Finn Thain wrote: As for side-effects, chip register accesses would be affected if dprintk() expanded to no_printk() when NDEBUG flg == 0. E.g. NCR5380.c line 1213: dprintk(NDEBUG_INTR, scsi : unknown interrupt, BASR 0x%X, MR 0x%X, SR 0x%x\n,

Re: [PATCH 00/12] scsi/NCR5380: fix debugging macros and #include structure

2014-03-18 Thread Finn Thain
On Tue, 18 Mar 2014, Joe Perches wrote: But using if (0) prevents the no_printk from occurring at all so there would be no side-effects and the format args would still be verified by the compiler. I'd prefer this (for symmetry and clarity): #if NDEBUG #define dprintk(flg, fmt, ...) \

Re: [PATCH 00/12] scsi/NCR5380: fix debugging macros and #include structure

2014-03-18 Thread Joe Perches
On Wed, 2014-03-19 at 12:46 +1100, Finn Thain wrote: On Tue, 18 Mar 2014, Joe Perches wrote: But using if (0) prevents the no_printk from occurring at all so there would be no side-effects and the format args would still be verified by the compiler. I'd prefer this (for symmetry and

Re: [PATCH v2] Target/iser: Fail SCSI WRITE command if device detected integrity error

2014-03-18 Thread Nicholas A. Bellinger
On Tue, 2014-03-18 at 14:58 +0200, Sagi Grimberg wrote: If during data-transfer a data-integrity error was detected we must fail the command with CHECK_CONDITION and not execute the command. Signed-off-by: Sagi Grimberg sa...@mellanox.com Reported-by: Or Gerlitz ogerl...@mellanox.com ---