RE: [PATCH] [SCSI] bfa: fix missing unlock on error in bfad_iocmd_cfg_trunk()

2013-12-23 Thread Vijaya Mohan Guvva
-Original Message- From: Wei Yongjun [mailto:weiyj...@gmail.com] Sent: Friday, December 20, 2013 8:21 AM To: Anil Gurumurthy; Vijaya Mohan Guvva; jbottom...@parallels.com Cc: yongjun_...@trendmicro.com.cn; linux-scsi@vger.kernel.org Subject: [PATCH] [SCSI] bfa: fix missing unlock on

[PATCH] bfa: Fix smatch warnings

2013-12-23 Thread Vijaya Mohan Guvva
From: Vijaya Mohan Guvva vgu...@redhat.com Fixed following smatch warnings in bfa. drivers/scsi/bfa/bfa_ioc.c:3882 bfa_sfp_show_comp() error: memcpy() 'des' too small (64 vs 248) drivers/scsi/bfa/bfa_ioc.c:6859 bfa_flash_status_read() warn: unsigned 'status' is never less than zero.

[PATCH 1/1] aacraid: kdump fix

2013-12-23 Thread Mahesh Rajashekhara
This patch fixes kernel panic issue while booting into the kdump kernel. We have triggered crash and kdump vmcore was successful. No issues seen while booting into the OS. Signed-off-by: Mahesh Rajashekhara mahesh.rajashekh...@pmcs.com --- drivers/scsi/aacraid/aacraid.h |2 +-

Re: [PATCH] pm80xx: Spinlock fix

2013-12-23 Thread Tomas Henzl
On 12/18/2013 12:28 PM, Viswas G wrote: From 9338d4bc92b23b4c283f9bd6812646ab74866a40 Mon Sep 17 00:00:00 2001 From: Suresh Thiagarajan suresh.thiagara...@pmcs.com Date: Mon, 16 Dec 2013 21:15:20 +0530 Subject: [PATCH] pm80xx: Spinlock fix spin_unlock was used instead of

Re: [PATCH] pm80xx: Spinlock fix

2013-12-23 Thread Jack Wang
On 12/23/2013 02:07 PM, Tomas Henzl wrote: On 12/18/2013 12:28 PM, Viswas G wrote: From 9338d4bc92b23b4c283f9bd6812646ab74866a40 Mon Sep 17 00:00:00 2001 From: Suresh Thiagarajan suresh.thiagara...@pmcs.com Date: Mon, 16 Dec 2013 21:15:20 +0530 Subject: [PATCH] pm80xx: Spinlock fix

[Bug 36742] Fusion MPT2SAS driver fails to suspend to S3 incorrectly, suspend to disk works.

2013-12-23 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=36742 Alan a...@lxorguk.ukuu.org.uk changed: What|Removed |Added Status|NEW |RESOLVED

RE: [PATCH] pm80xx: Spinlock fix

2013-12-23 Thread Suresh Thiagarajan
-Original Message- From: Jack Wang [mailto:xjtu...@gmail.com] Sent: Monday, December 23, 2013 7:03 PM To: Tomas Henzl; Viswas G Cc: linux-scsi@vger.kernel.org; jason.seb...@gmail.com; jbottom...@parallels.com; Vasanthalakshmi Tharmarajan; Suresh Thiagarajan Subject: Re: [PATCH] pm80xx:

Re: status of block-integrity

2013-12-23 Thread Christoph Hellwig
On Mon, Dec 23, 2013 at 08:35:22AM -0500, Martin K. Petersen wrote: Christoph == Christoph Hellwig h...@infradead.org writes: Christoph We have the block integrity code to support DIF/DIX in the Christoph the tree for about 5 and a half years, and we still don't Christoph have a single

Re: status of block-integrity

2013-12-23 Thread Martin K. Petersen
Christoph == Christoph Hellwig h...@infradead.org writes: Christoph We have the block integrity code to support DIF/DIX in the Christoph the tree for about 5 and a half years, and we still don't Christoph have a single consumer of it. What do you mean? If you have a DIX-capable HBA (lpfc,

[Bug 42765] mptscsih driver issues task aborts during high write utilization

2013-12-23 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=42765 Alan a...@lxorguk.ukuu.org.uk changed: What|Removed |Added Resolution|--- |OBSOLETE

Re: [PATCH] pm80xx: Spinlock fix

2013-12-23 Thread Jason Seba
Why is this considered dangerous? I put some thought into it and couldn't find any obvious reason why it wouldn't work, but I also couldn't find any other drivers that work this way. Is there a particular reason to avoid doing it this way? On Mon, Dec 23, 2013 at 8:45 AM, Suresh Thiagarajan

Re: [PATCH] pm80xx: Spinlock fix

2013-12-23 Thread Jack Wang
On 12/23/2013 03:55 PM, Jason Seba wrote: Why is this considered dangerous? I put some thought into it and couldn't find any obvious reason why it wouldn't work, but I also couldn't find any other drivers that work this way. Is there a particular reason to avoid doing it this way? If you

Re: [Scst-devel] [SPF:fail] Re: FC initiator performance tanks once target mode is enabled

2013-12-23 Thread Steve Magnani
Nicholas, On Sat, 2013-12-14 at 10:51 -0600, Dr. Greg Wettstein wrote: On Dec 12, 11:45am, Nicholas A. Bellinger wrote: What I would prefer myself is to have a single set of target drivers that works for both LIO and SCST. That would not only make both projects easier to maintain but

[PATCH] megaraid_sas: Quirk mmio hook for 1078 MR controller

2013-12-23 Thread Kashyap.Desai
This patch has fix for LSI Gen-1 MR controller issue which only pop-up on few systems and it is not generic. On few system, MR 1078 MR controller is not working if mmio decoding is off. This patch proposed early quirck entry for Device id 0x1000/0x0411 to enable mmio. Signed-off-by: Kashyap

Re: [PATCH] pm80xx: Spinlock fix

2013-12-23 Thread Tomas Henzl
On 12/23/2013 04:06 PM, Jack Wang wrote: On 12/23/2013 03:55 PM, Jason Seba wrote: Why is this considered dangerous? I put some thought into it and couldn't find any obvious reason why it wouldn't work, but I also couldn't find any other drivers that work this way. Is there a particular

Re: [PATCH] pm80xx: Spinlock fix

2013-12-23 Thread Jason Seba
Wouldn't the contents of the global flags value be protected by the spinlock itself? Or is that making a dangerous assumption about the particulars of how spinlocks work on various platforms? On Mon, Dec 23, 2013 at 10:28 AM, Tomas Henzl the...@redhat.com wrote: On 12/23/2013 04:06 PM, Jack

Re: [PATCH] pm80xx: Spinlock fix

2013-12-23 Thread Tomas Henzl
On 12/23/2013 04:33 PM, Jason Seba wrote: Wouldn't the contents of the global flags value be protected by the spinlock itself? Or is that making a dangerous assumption about the particulars of how spinlocks work on various platforms? I'm not an expert but I think, that the spinlock starts by

Re: [PATCH] pm80xx: Spinlock fix

2013-12-23 Thread Oleg Nesterov
On 12/23, Tomas Henzl wrote: On 12/23/2013 04:06 PM, Jack Wang wrote: On 12/23/2013 03:55 PM, Jason Seba wrote: Why is this considered dangerous? I put some thought into it and couldn't find any obvious reason why it wouldn't work, but I also couldn't find any other drivers that work

Re: [PATCH] pm80xx: Spinlock fix

2013-12-23 Thread Oleg Nesterov
On 12/23, Jason Seba wrote: Wouldn't the contents of the global flags value be protected by the spinlock itself? This can be even true because nowadays spin_lock_irqsave() writes to flags after it takes the lock, and _irqrestore works gets the copy of flags before it releases the lock. Still

spinlock_irqsave() flags (Was: pm80xx: Spinlock fix)

2013-12-23 Thread Oleg Nesterov
On 12/23, Oleg Nesterov wrote: Perhaps we should ask the maintainers upstream? Even if this works, I am not sure this is _supposed_ to work. I mean, in theory spin_lock_irqave() can be changed as, say #define spin_lock_irqsave(lock, flags) \ do {

Re: [PATCH] megaraid_sas: Quirk mmio hook for 1078 MR controller

2013-12-23 Thread Bjorn Helgaas
On Mon, Dec 23, 2013 at 8:13 AM, kashyap.de...@lsi.com wrote: This patch has fix for LSI Gen-1 MR controller issue which only pop-up on few systems and it is not generic. On few system, MR 1078 MR controller is not working if mmio decoding is off. This patch proposed early quirck entry for

Re: spinlock_irqsave() flags (Was: pm80xx: Spinlock fix)

2013-12-23 Thread Linus Torvalds
On Mon, Dec 23, 2013 at 9:27 AM, Oleg Nesterov o...@redhat.com wrote: In short, is this code spinlock_t LOCK; unsigned long FLAGS; void my_lock(void) { spin_lock_irqsave(LOCK, FLAGS); } void my_unlock(void) {

Re: spinlock_irqsave() flags (Was: pm80xx: Spinlock fix)

2013-12-23 Thread Oleg Nesterov
On 12/23, Linus Torvalds wrote: On Mon, Dec 23, 2013 at 9:27 AM, Oleg Nesterov o...@redhat.com wrote: In short, is this code spinlock_t LOCK; unsigned long FLAGS; void my_lock(void) { spin_lock_irqsave(LOCK, FLAGS); }

Re: spinlock_irqsave() flags (Was: pm80xx: Spinlock fix)

2013-12-23 Thread Ingo Molnar
* Oleg Nesterov o...@redhat.com wrote: On 12/23, Oleg Nesterov wrote: Perhaps we should ask the maintainers upstream? Even if this works, I am not sure this is _supposed_ to work. I mean, in theory spin_lock_irqave() can be changed as, say #define spin_lock_irqsave(lock, flags)

Re: spinlock_irqsave() flags (Was: pm80xx: Spinlock fix)

2013-12-23 Thread Oleg Nesterov
On 12/23, Ingo Molnar wrote: * Oleg Nesterov o...@redhat.com wrote: Initially I thought that this is obviously wrong, irqsave/irqrestore assume that flags is owned by the caller, not by the lock. And iirc this was certainly wrong in the past. But when I look at spinlock.c it seems

[Bug 8221] RACE: Lock is expected before calling ips_removeq_scb_head, but in some call chains not held!

2013-12-23 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=8221 Alan a...@lxorguk.ukuu.org.uk changed: What|Removed |Added Status|NEW |RESOLVED

Re: spinlock_irqsave() flags (Was: pm80xx: Spinlock fix)

2013-12-23 Thread Linus Torvalds
On Mon, Dec 23, 2013 at 10:24 AM, Oleg Nesterov o...@redhat.com wrote: However, the code above already has the users. Do you think it makes sense to add something like No. I think it makes sense to put a big warning on any users you find, and fart in the general direction of any developer who

scsi-mq WIP updated to v3.13-rc3

2013-12-23 Thread Nicholas A. Bellinger
Hi Folks, Just a heads up that scsi-mq alpha code has been updated to v3.13-rc3 using the freshly upstreamed blk-mq logic. The working branch is available here: git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending.git scsi-mq The changelog since the last v3.12-rc3 rev includes:

Re: [Scst-devel] [SPF:fail] Re: FC initiator performance tanks once target mode is enabled

2013-12-23 Thread Nicholas A. Bellinger
On Mon, 2013-12-23 at 09:13 -0600, Steve Magnani wrote: Nicholas, On Sat, 2013-12-14 at 10:51 -0600, Dr. Greg Wettstein wrote: On Dec 12, 11:45am, Nicholas A. Bellinger wrote: SNIP We don't add interfaces into mainline drive code to support out-of-tree projects, because quite

Re: [PATCH] drivers: target: target_core_mod: use div64_u64_rem() instead of operator '%' for u64

2013-12-23 Thread Chen Gang
On 12/23/2013 02:51 PM, Nicholas A. Bellinger wrote: On Sun, 2013-12-22 at 17:17 +0800, Chen Gang wrote: On 12/22/2013 10:56 AM, Nicholas A. Bellinger wrote: Hi Chen, On Sat, 2013-12-21 at 10:08 +0800, Chen Gang wrote: In kernel, need use div64_u64_rem() instead of operator '%' for u64, or

bio_integrity_verify() bug causing READ verify to be silently skipped

2013-12-23 Thread Nicholas A. Bellinger
Hi Martin Co, So after playing with the mainline DIF client against an initial WIP target DIF support patch, I've started hitting a bug in bio_integrity_verify() that causes READ verify logic to be silently skipped for both WIP target and existing scsi_debug DIF code. The issue is with the