Re: [PATCH 2/2] target_core_spc: bounds check for spc_emulate_inquiry()

2013-12-19 Thread Hannes Reinecke
On 12/19/2013 11:11 PM, Nicholas A. Bellinger wrote: > On Thu, 2013-12-19 at 14:36 +0100, Hannes Reinecke wrote: >> Instead of using a static buffer for inquiry data we should >> rather use the command-provided buffer and implement proper >> bounds checking when writing to it. >> Inquiry is by no m

[PATCH] [SCSI] megaraid: use GFP_ATOMIC under spin lock

2013-12-19 Thread Wei Yongjun
From: Wei Yongjun A spin lock is taken here so we should use GFP_ATOMIC. Signed-off-by: Wei Yongjun --- drivers/scsi/megaraid/megaraid_mm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/megaraid/megaraid_mm.c b/drivers/scsi/megaraid/megaraid_mm.c index a7069

[PATCH] fcoe: add missing destroy_workqueue() on error in fcoe_init()

2013-12-19 Thread Wei Yongjun
From: Wei Yongjun Add the missing destroy_workqueue() before return from fcoe_init() in the error handling case. Signed-off-by: Wei Yongjun --- drivers/scsi/fcoe/fcoe.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/fcoe/fcoe.c b/drivers/scsi/fcoe/fcoe.c ind

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

2013-12-19 Thread Wei Yongjun
From: Wei Yongjun Add the missing unlock before return from function bfad_iocmd_cfg_trunk() in the error handling case. Signed-off-by: Wei Yongjun --- drivers/scsi/bfa/bfad_bsg.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/bfa/bfad_bsg.c b/drivers/scsi/b

Hello dear

2013-12-19 Thread annstokesz
Hello dear I will be very happy to be your friend. My name is miss. Ann Stokes. Please i will like you to write me through my email address ( ann...@yahoo.fr ) . I will send my pictures to you and also tell you more about myself when i receive your email. I will be waiting for your mail in my mail

Re: [PATCH 2/2] target_core_spc: bounds check for spc_emulate_inquiry()

2013-12-19 Thread Nicholas A. Bellinger
On Thu, 2013-12-19 at 14:36 +0100, Hannes Reinecke wrote: > Instead of using a static buffer for inquiry data we should > rather use the command-provided buffer and implement proper > bounds checking when writing to it. > Inquiry is by no means time-critical ... > > Signed-off-by: Hannes Reinecke

Re: [PATCH 1/2] target_core_alua: check for buffer overflow

2013-12-19 Thread Nicholas A. Bellinger
On Thu, 2013-12-19 at 14:36 +0100, Hannes Reinecke wrote: > When a writing to a command-provided buffer we need to ensure > that we're not writing past the end of it. > At the same time we need to continue processing as typically > the final data length (ie the required size of the buffer) > need t

Re: [RFC 0/2] target refcounting infrastructure fixes for usb

2013-12-19 Thread James Bottomley
On Thu, 2013-12-19 at 10:26 -0800, Sarah Sharp wrote: > On Wed, Dec 18, 2013 at 04:05:05PM -0800, James Bottomley wrote: > > On Wed, 2013-12-18 at 16:50 -0500, Alan Stern wrote: > > > On Wed, 18 Dec 2013, Sarah Sharp wrote: > > > > > > > On Mon, Dec 16, 2013 at 07:10:19AM -0800, James Bottomley wr

Re: [RFC 0/2] target refcounting infrastructure fixes for usb

2013-12-19 Thread Sarah Sharp
On Wed, Dec 18, 2013 at 04:05:05PM -0800, James Bottomley wrote: > On Wed, 2013-12-18 at 16:50 -0500, Alan Stern wrote: > > On Wed, 18 Dec 2013, Sarah Sharp wrote: > > > > > On Mon, Dec 16, 2013 at 07:10:19AM -0800, James Bottomley wrote: > > > > This set should fix our target problems with USB by

[PATCH 0/2] pm80xx: Fix ATTO pm8001 based HBA support

2013-12-19 Thread Bradley Grove
Addresses issues that we uncovered during testing with our HBAs. For the most part, we just enabled code that was already being used for other vendor's HBAs. Bradley Grove (2): pm80xx: Read saved WWN from NVMD for ATTO pm8001 based HBAs. pm80xx: Enable BAR shift to avoid BIOS conflict with MP

[PATCH 2/2] pm80xx: Enable BAR shift to avoid BIOS conflict with MPI space for ATTO pm8001 based HBAs.

2013-12-19 Thread Bradley Grove
Signed-off-by: Bradley Grove --- drivers/scsi/pm8001/pm8001_hwi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/pm8001/pm8001_hwi.c b/drivers/scsi/pm8001/pm8001_hwi.c index 46ace52..561ca2c 100644 --- a/drivers/scsi/pm8001/pm8001_hwi.c +++ b/drivers/scsi/p

[PATCH 1/2] pm80xx: Read saved WWN from NVMD for ATTO pm8001 based HBAs.

2013-12-19 Thread Bradley Grove
Signed-off-by: Bradley Grove --- drivers/scsi/pm8001/pm8001_init.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/scsi/pm8001/pm8001_init.c b/drivers/scsi/pm8001/pm8001_init.c index 73a120d..cb89d15 100644 --- a/drivers/scsi/pm8001/pm8001_init.c +++ b/driv

URGENT LOAN OFFER!!

2013-12-19 Thread johnsmith
DO YOU NEED A LOAN IF YES,CONTACT US WITH:LOAN AMOUNT,LOAN DURATION,COUNTRY,PHONE,MOBILE NO:CONTACT US VIA EMAIL:(mr.johnsmithloanf...@gmail.com) -- 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

Re: [PATCH 33/38] scsi: transport: add missing put_device call

2013-12-19 Thread James Bottomley
On Thu, 2013-12-19 at 16:06 +0100, Levente Kurusa wrote: > This is required so that we give up the last reference to the device. This isn't true. > Remove the kfree() as well, because the put_device() will result in > iscsi_endpoint_release being called and hence it will be kfree'd. There's no r

[PATCH 33/38] scsi: transport: add missing put_device call

2013-12-19 Thread Levente Kurusa
This is required so that we give up the last reference to the device. Remove the kfree() as well, because the put_device() will result in iscsi_endpoint_release being called and hence it will be kfree'd. Signed-off-by: Levente Kurusa --- drivers/scsi/scsi_transport_iscsi.c | 10 -- 1 fil

[PATCH 2/2] target_core_spc: bounds check for spc_emulate_inquiry()

2013-12-19 Thread Hannes Reinecke
Instead of using a static buffer for inquiry data we should rather use the command-provided buffer and implement proper bounds checking when writing to it. Inquiry is by no means time-critical ... Signed-off-by: Hannes Reinecke --- drivers/target/target_core_spc.c | 391 +

[PATCH 0/2] Handle data underflow

2013-12-19 Thread Hannes Reinecke
Here are some minor cleanups to better handler data underflow in target_emulate_report_referrals and during VPD emulation. The first is on request from Nic, and the second resolves a high stack frame usage during generating INQUIRY responses. Hannes Reinecke (2): target_core_alua: check for buf

[PATCH 1/2] target_core_alua: check for buffer overflow

2013-12-19 Thread Hannes Reinecke
When a writing to a command-provided buffer we need to ensure that we're not writing past the end of it. At the same time we need to continue processing as typically the final data length (ie the required size of the buffer) need to be returned. Signed-off-by: Hannes Reinecke --- drivers/target/

Re: [net-next 1/1] linux-firmware: 3.2.3.0 Firmware for Brocade Adapters

2013-12-19 Thread Ben Hutchings
On Tue, 2013-12-17 at 17:12 -0800, Rasesh Mody wrote: > This is the 3.2.3.0 firmware patch for Brocade 3.2.23.0 BFA and BNA drivers. > > Signed-off-by: Rasesh Mody > --- > WHENCE| 3 +++ > cbfw-3.2.3.0.bin | Bin 0 -> 414016 bytes > ct2fw-3.2.3.0.bin | Bin 0 -> 583688 bytes > ctf

How to deal with hot exchange busy sata disk?

2013-12-19 Thread Shangyou Zeng
Hi,Jason, 我的英文不是很好,请允许我使用中文来描述我的问题: 我有8块sata磁盘,插在一个使用pm8001驱动的机器上,这个驱动会用到libsas库。把他们命名为d0~d7。我将d1,d2,d4组成raid5,d0,d5,d6.d7组成raid6,这样这7个磁盘就会因为raid初始化有大量的io产生,此时我迅速的互换d1,d2的插口,然后互换d0,d3 的插口,希望的结果是d1,d2从raid5中剔出,d0从raid6中剔出,但是实际的结果是d3被误加入raid6中,原因是libsas的discovery中没有识别出d0和d3的呼唤。 我分析出现这个问题