Re: [PATCH 25/27] block: remove the discard_zeroes_data flag

2017-05-08 Thread Nicholas A. Bellinger
On Sun, 2017-05-07 at 11:22 +0200, h...@lst.de wrote: > On Tue, May 02, 2017 at 08:33:15PM -0700, Nicholas A. Bellinger wrote: > > The larger target/iblock conversion patch looks like post v4.12 material > > at this point, so to avoid breakage wrt to existing LBPRZ behavior, I'll > > plan to push t

Re: [PATCH v4] ibmvscsis: Do not send aborted task response

2017-05-08 Thread Nicholas A. Bellinger
Hi Bryant, Given running we're almost out of time for -rc1, I'd like to avoid having to rebase the handful of patches that are atop the -v3 that was applied to target-pending/for-next over the weekend... So if you'd be so kind, please post an incremental patch atop -v3, and I'll apply that instea

Re: [PATCH] scsi: qedf: properly update arguments position in function call

2017-05-08 Thread Gustavo A. R. Silva
Hi Martin, Quoting "Martin K. Petersen" : Gustavo A., Properly update the position of the arguments in function call. Applied to 4.12/scsi-fixes, thank you! Awesome, glad to help. :) -- Gustavo A. R. Silva

Re: [PATCH] scsi: pmcraid: remove redundant check to see if request_size is less than zero

2017-05-08 Thread Martin K. Petersen
Colin, > The 2nd check to see if request_size is less than zero is redundant > because the first check takes error exit path on this condition. So, > since it is redundant, remove it. Applied to 4.12/scsi-fixes. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] scsi: lpfc: ensure els_wq is being checked before destroying it

2017-05-08 Thread Martin K. Petersen
Colin, > I believe there is a typo on the wq destroy of els_wq, currently the > driver is checking if els_cq is not null and I think this should be a > check on els_wq instead. Applied to 4.12/scsi-fixes. Thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] cxlflash: Select IRQ_POLL

2017-05-08 Thread Martin K. Petersen
Guenter, > The driver now uses IRQ_POLL and needs to select it to avoid the following > build error. Applied to 4.12/scsi-fixes, thank you! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] scsi: qedf: Avoid reading past end of buffer

2017-05-08 Thread Martin K. Petersen
Kees, > Using memcpy() from a string that is shorter than the length copied > means the destination buffer is being filled with arbitrary data from > the kernel rodata segment. Instead, use strncpy() which will fill the > trailing bytes with zeros. Applied to 4.12/scsi-fixes, thanks! -- Martin

Re: remove REQ_OP_WRITE_SAME

2017-05-08 Thread Martin K. Petersen
Christoph, > Any chance to get a sneak preview of that work? I have been on the road since LSF/MM and just got back home. I'll make it a priority. -- Martin K. Petersen Oracle Linux Engineering

Re: [REEEEPOST] bnx2i + bnx2fc: convert to generic workqueue (#3)

2017-05-08 Thread Martin K. Petersen
Sebastian, > Martin, do you see any chance to get this merged? Chad replied to the > list that he is going to test it on 2017-04-10, didn't respond to the > ping 10 days later. The series stalled last time in the same way. I am very reluctant to merge something when a driver has an active mainta

Re: [PATCH v2] sd: Ignore sync cache failures when not supported

2017-05-08 Thread Martin K. Petersen
Christoph, > Normally we'd just pass the scsi_sense_hdr structure in from the caler > if we care about sense data. Is this something you considered? > > Otherwise this looks fine to me. I agree with Christoph that passing the sense header would be more consistent with the rest of the SCSI code.

Re: [PATCH] scsi: qedf: Cleanup the type of io_log->op

2017-05-08 Thread Martin K. Petersen
Dan, > We store sc_cmd->cmnd[0] which is an unsigned char in io_log->op so > this should also be unsigned char. The other thing is that this is > displayed in the debugfs: Applied to 4.12/scsi-fixes, thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] scsi: lpfc: double lock typo in lpfc_ns_rsp()

2017-05-08 Thread Martin K. Petersen
Dan, > There is a double lock bug here so this will deadlock instead of > unlocking. Applied to 4.12/scsi-fixes. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] scsi: qedf: properly update arguments position in function call

2017-05-08 Thread Martin K. Petersen
Gustavo A., > Properly update the position of the arguments in function call. Applied to 4.12/scsi-fixes, thank you! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] scsi_lib: Add #include

2017-05-08 Thread Martin K. Petersen
Bart, > This patch avoids that when building with W=1 the compiler complains > that __scsi_init_queue() has not been declared. See also commit > d48777a633d6 ("scsi: remove __scsi_alloc_queue"). Applied to 4.12/scsi-fixes. Thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH, RFC] MAINTAINERS: update OSD entries

2017-05-08 Thread Martin K. Petersen
Christoph, > The open-osd domain doesn't exist anymore, and mails to the list lead > to really annoying bounced that repeat every day. > > Also the primarydata address for Benny bounces, and while I have a new > one for him he doesn't seem to be maintaining the OSD code any more. > > Which beggs

Re: [PATCH]scsi: megaraid_sas: fix raid card hotswap failure

2017-05-08 Thread Martin K. Petersen
Zhou, > When a scsi_device is unpluged from scsi controller, if the > scsi_device is still be used by application layer,it won't be released > until users release it. In this case, scsi_device_remove just set the > scsi_device's state to be SDEV_DEL. But if you plug the disk just > before the old

Re: [PATCH v3] lpfc: Fix panic on BFS configuration.

2017-05-08 Thread Martin K. Petersen
James, > Fix is to reset the sli-3 function before sending the mailbox command, > thus synchronizing the function/driver on mailbox location. Applied to 4.12/scsi-fixes. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] libfc: do not flood console with messages 'libfc: queue full ...'

2017-05-08 Thread Martin K. Petersen
Hannes, > When the FCoE sending side becomes congested libfc tries to reduce the > queue depth on the host; however due to the built-in lag before > attempting to ramp down the queue depth _again_ the message log is > flooded with messages > > libfc: queue full, reducing can_queue to 512 > > With

[PATCH v4] ibmvscsis: Do not send aborted task response

2017-05-08 Thread Bryant G. Ly
The driver is sending a response to the actual scsi op that was aborted by an abort task TM, while LIO is sending a response to the abort task TM. ibmvscsis_tgt does not send the response to the client until release_cmd time. The reason for this was because if we did it at queue_status time, then

Re: Race to power off harming SATA SSDs

2017-05-08 Thread Pavel Machek
On Mon 2017-05-08 16:40:11, David Woodhouse wrote: > On Mon, 2017-05-08 at 13:50 +0200, Boris Brezillon wrote: > > On Mon, 08 May 2017 11:13:10 +0100 > > David Woodhouse wrote: > > > > > > > > On Mon, 2017-05-08 at 11:09 +0200, Hans de Goede wrote: > > > > > > > > You're forgetting that the SSD

RE: [PATCH 00/19] aacraid: Patchset with reset rework and misc fixes

2017-05-08 Thread Raghava Aditya Renukunta
Hi, The patch set has been sent twice. Please ignore the later sent/received patch set. I had sent the original patch set on Saturday, but I did not receive a confirmation nor did any mailing list archive(http://marc.info/?l=linux-scsi) pick them up (should have waited). The next day I res

Re: Race to power off harming SATA SSDs

2017-05-08 Thread Tejun Heo
Hello, On Mon, May 08, 2017 at 08:56:15PM +0200, Pavel Machek wrote: > Well... the SMART counter tells us that the device was not shut down > correctly. Do we have reason to believe that it is _not_ telling us > truth? It is more than one device. It also finished power off command successfully.

Re: Race to power off harming SATA SSDs

2017-05-08 Thread Pavel Machek
On Mon 2017-05-08 13:43:03, Tejun Heo wrote: > Hello, > > On Mon, May 08, 2017 at 06:43:22PM +0200, Pavel Machek wrote: > > What I was trying to point out was that storage people try to treat > > SSDs as HDDs... and SSDs are very different. Harddrives mostly survive > > powerfails (with emergency

RE: Race to power off harming SATA SSDs

2017-05-08 Thread Atlant Schmidt
> Well, you are right.. and I'm responsible. > > What I was trying to point out was that storage people try to treat SSDs as > HDDs... > and SSDs are very different. Harddrives mostly survive powerfails (with > emergency > parking), while it is very, very difficult to make SSD survive random > p

Re: Race to power off harming SATA SSDs

2017-05-08 Thread Tejun Heo
Hello, On Mon, May 08, 2017 at 06:43:22PM +0200, Pavel Machek wrote: > What I was trying to point out was that storage people try to treat > SSDs as HDDs... and SSDs are very different. Harddrives mostly survive > powerfails (with emergency parking), while it is very, very difficult > to make SSD

Re: Race to power off harming SATA SSDs

2017-05-08 Thread Pavel Machek
On Mon 2017-05-08 13:50:05, Boris Brezillon wrote: > On Mon, 08 May 2017 11:13:10 +0100 > David Woodhouse wrote: > > > On Mon, 2017-05-08 at 11:09 +0200, Hans de Goede wrote: > > > You're forgetting that the SSD itself (this thread is about SSDs) also has > > > a major software component which is

Re: Race to power off harming SATA SSDs

2017-05-08 Thread David Woodhouse
On Mon, 2017-05-08 at 13:50 +0200, Boris Brezillon wrote: > On Mon, 08 May 2017 11:13:10 +0100 > David Woodhouse wrote: > > > > > On Mon, 2017-05-08 at 11:09 +0200, Hans de Goede wrote: > > > > > > You're forgetting that the SSD itself (this thread is about SSDs) also has > > > a major software

Re: [PATCH] cxlflash: Select IRQ_POLL

2017-05-08 Thread Matthew R. Ochs
> On May 5, 2017, at 6:31 PM, Guenter Roeck wrote: > > The driver now uses IRQ_POLL and needs to select it to avoid the following > build error. > > ERROR: ".irq_poll_complete" [drivers/scsi/cxlflash/cxlflash.ko] undefined! > ERROR: ".irq_poll_sched" [drivers/scsi/cxlflash/cxlflash.ko] undefined

Re: Race to power off harming SATA SSDs

2017-05-08 Thread Pavel Machek
Hi! > > 'clean marker' is a good idea... empty pages have plenty of space. > > Well... you lose that space permanently. Although I suppose you could > do things differently and erase a block immediately prior to using it. > But in that case why ever write the cleanmarker? Just maintain a set of >

Re: Race to power off harming SATA SSDs

2017-05-08 Thread Richard Weinberger
Boris, Am 08.05.2017 um 13:48 schrieb Boris Brezillon: >>> How do you handle the issue during regular write? Always ignore last >>> successfully written block? > > I guess UBIFS can know what was written last, because of the log-based > approach + the seqnum stored along with FS nodes, but I'm

Re: [PATCH] scsi: qla4xxx: check for null return from iscsi_lookup_endpoint

2017-05-08 Thread Dan Carpenter
This should be CC'd to qlogic-storage-upstr...@qlogic.com as well. regards, dan carpenter On Sun, May 07, 2017 at 10:30:20PM +0100, Colin King wrote: > From: Colin Ian King > > iscsi_lookup_endpoint can potentially return null and in 9 out of > the 10 calls to this function a null return is che

Re: Race to power off harming SATA SSDs

2017-05-08 Thread Boris Brezillon
On Mon, 8 May 2017 13:48:07 +0200 Boris Brezillon wrote: > On Mon, 8 May 2017 13:06:17 +0200 > Richard Weinberger wrote: > > > On Mon, May 8, 2017 at 12:49 PM, Pavel Machek wrote: > > > Aha, nice, so it looks like ubifs is a step back here. > > > > > > 'clean marker' is a good idea... empty

Re: Race to power off harming SATA SSDs

2017-05-08 Thread Boris Brezillon
On Mon, 08 May 2017 11:13:10 +0100 David Woodhouse wrote: > On Mon, 2017-05-08 at 11:09 +0200, Hans de Goede wrote: > > You're forgetting that the SSD itself (this thread is about SSDs) also has > > a major software component which is doing housekeeping all the time, so even > > if the main CPU g

Re: Race to power off harming SATA SSDs

2017-05-08 Thread Boris Brezillon
On Mon, 8 May 2017 13:06:17 +0200 Richard Weinberger wrote: > On Mon, May 8, 2017 at 12:49 PM, Pavel Machek wrote: > > Aha, nice, so it looks like ubifs is a step back here. > > > > 'clean marker' is a good idea... empty pages have plenty of space. > > If UBI (not UBIFS) faces an empty block,

[PATCH] qlogicpti: Fix resource releasing in order handling path

2017-05-08 Thread Christophe JAILLET
Reorder 'fail_free_irq' and 'fail_unmap_regs' in order to correctly free resources in case of error. Signed-off-by: Christophe JAILLET --- drivers/scsi/qlogicpti.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/qlogicpti.c b/drivers/scsi/qlogicpti.c index

Re: Race to power off harming SATA SSDs

2017-05-08 Thread David Woodhouse
On Mon, 2017-05-08 at 12:49 +0200, Pavel Machek wrote: > On Mon 2017-05-08 10:34:08, David Woodhouse wrote: > > > > On Mon, 2017-05-08 at 11:28 +0200, Pavel Machek wrote: > > > > > > > > > Are you sure you have it right in JFFS2? Do you journal block erases? > > > Apparently, that was pretty muc

Re: Race to power off harming SATA SSDs

2017-05-08 Thread Richard Weinberger
On Mon, May 8, 2017 at 12:49 PM, Pavel Machek wrote: > Aha, nice, so it looks like ubifs is a step back here. > > 'clean marker' is a good idea... empty pages have plenty of space. If UBI (not UBIFS) faces an empty block, it also re-erases it. The EC header is uses as clean marker. > How do you

Re: Race to power off harming SATA SSDs

2017-05-08 Thread Pavel Machek
On Mon 2017-05-08 10:34:08, David Woodhouse wrote: > On Mon, 2017-05-08 at 11:28 +0200, Pavel Machek wrote: > > > > Are you sure you have it right in JFFS2? Do you journal block erases? > > Apparently, that was pretty much non-issue on older flashes. > > It isn't necessary in JFFS2. It is a *pure

Re: Race to power off harming SATA SSDs

2017-05-08 Thread David Woodhouse
On Mon, 2017-05-08 at 11:06 +0200, Ricard Wanderlof wrote: > > My point is really that say that the problem is in fact not that the erase  > is cut short due to the power fail, but that the software issues a second  > command before the first erase command has completed, for instance, or  > some o

Re: Race to power off harming SATA SSDs

2017-05-08 Thread David Woodhouse
On Mon, 2017-05-08 at 11:09 +0200, Hans de Goede wrote: > You're forgetting that the SSD itself (this thread is about SSDs) also has > a major software component which is doing housekeeping all the time, so even > if the main CPU gets reset the SSD's controller may still happily be erasing > blocks

Re: Race to power off harming SATA SSDs

2017-05-08 Thread Richard Weinberger
Pavel, On Mon, May 8, 2017 at 11:28 AM, Pavel Machek wrote: > Are you sure you have it right in JFFS2? Do you journal block erases? > Apparently, that was pretty much non-issue on older flashes. This is what the website says, yes. Do you have hardware where you can trigger it? If so, I'd love to

Re: Race to power off harming SATA SSDs

2017-05-08 Thread David Woodhouse
On Mon, 2017-05-08 at 11:28 +0200, Pavel Machek wrote: > > Are you sure you have it right in JFFS2? Do you journal block erases? > Apparently, that was pretty much non-issue on older flashes. It isn't necessary in JFFS2. It is a *purely* log-structured file system (which is why it doesn't scale w

Re: Race to power off harming SATA SSDs

2017-05-08 Thread Pavel Machek
On Mon 2017-05-08 08:21:34, David Woodhouse wrote: > On Sun, 2017-05-07 at 22:40 +0200, Pavel Machek wrote: > > > > NOTE: unclean SSD power-offs are dangerous and may brick the device in > > > > the worst case, or otherwise harm it (reduce longevity, damage flash > > > > blocks).  It is also not im

Re: Race to power off harming SATA SSDs

2017-05-08 Thread Hans de Goede
Hi, On 08-05-17 11:06, Ricard Wanderlof wrote: On Mon, 8 May 2017, David Woodhouse wrote: On Mon, 8 May 2017, David Woodhouse wrote: Our empirical testing trumps your "can never happen" theory :) I'm sure it does. But what is the explanation then? Has anyone analyzed what is going on using

Re: Race to power off harming SATA SSDs

2017-05-08 Thread Ricard Wanderlof
On Mon, 8 May 2017, David Woodhouse wrote: > > On Mon, 8 May 2017, David Woodhouse wrote: > > > Our empirical testing trumps your "can never happen" theory :) > > > > I'm sure it does. But what is the explanation then? Has anyone analyzed  > > what is going on using an oscilloscope to verify rela

Re: Race to power off harming SATA SSDs

2017-05-08 Thread David Woodhouse
On Mon, 2017-05-08 at 10:36 +0200, Ricard Wanderlof wrote: > On Mon, 8 May 2017, David Woodhouse wrote: > > Our empirical testing trumps your "can never happen" theory :) > > I'm sure it does. But what is the explanation then? Has anyone analyzed  > what is going on using an oscilloscope to verify

Re: [PATCH] libfc: do not flood console with messages 'libfc: queue full ...'

2017-05-08 Thread Johannes Thumshirn
On Thu, Apr 27, 2017 at 04:25:03PM +0200, Hannes Reinecke wrote: > When the FCoE sending side becomes congested libfc tries to > reduce the queue depth on the host; however due to the built-in > lag before attempting to ramp down the queue depth _again_ the > message log is flooded with messages >

Re: Race to power off harming SATA SSDs

2017-05-08 Thread Ricard Wanderlof
On Mon, 8 May 2017, David Woodhouse wrote: > > I've got a problem with the underlying mechanism. How long does it take to  > > erase a NAND block? A couple of milliseconds. That means that for an erase  > > to be "weak" du to a power fail, the host CPU must issue an erase command,  > > and then t

Re: Race to power off harming SATA SSDs

2017-05-08 Thread David Woodhouse
On Mon, 2017-05-08 at 09:38 +0200, Ricard Wanderlof wrote: > On Mon, 8 May 2017, David Woodhouse wrote: > > > > > > > > > [Issue is, if you powerdown during erase, you get "weakly erased" > > > page, which will contain expected 0xff's, but you'll get bitflips > > > there quickly. Similar issue e

[PATCH 19/19] aacraid: Update driver version to 50834

2017-05-08 Thread Raghava Aditya Renukunta
Update the driver version to 50834 Signed-off-by: Raghava Aditya Renukunta --- drivers/scsi/aacraid/aacraid.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/aacraid/aacraid.h b/drivers/scsi/aacraid/aacraid.h index 58ccd2a..0995265 100644 --- a/drivers/scsi/aacra

Re: Race to power off harming SATA SSDs

2017-05-08 Thread Ricard Wanderlof
On Mon, 8 May 2017, David Woodhouse wrote: > > [Issue is, if you powerdown during erase, you get "weakly erased" > > page, which will contain expected 0xff's, but you'll get bitflips > > there quickly. Similar issue exists for writes. It is solveable in > > software, just hard and slow... and we

Re: [PATCH] scsi_lib: Add #include

2017-05-08 Thread Johannes Thumshirn
On Tue, May 02, 2017 at 10:45:03AM -0700, Bart Van Assche wrote: > This patch avoids that when building with W=1 the compiler > complains that __scsi_init_queue() has not been declared. > See also commit d48777a633d6 ("scsi: remove __scsi_alloc_queue"). > > Signed-off-by: Bart Van Assche > Cc: Ch

Re: Race to power off harming SATA SSDs

2017-05-08 Thread David Woodhouse
On Sun, 2017-05-07 at 22:40 +0200, Pavel Machek wrote: > > > NOTE: unclean SSD power-offs are dangerous and may brick the device in > > > the worst case, or otherwise harm it (reduce longevity, damage flash > > > blocks).  It is also not impossible to get data corruption. > > > I get that the incre

Re: [PATCH v3] lpfc: Fix panic on BFS configuration.

2017-05-08 Thread Johannes Thumshirn
On Thu, Apr 27, 2017 at 03:08:26PM -0700, jsmart2...@gmail.com wrote: > From: James Smart > > To select the appropriate shost template, the driver is issuing > a mailbox command to retrieve the wwn. Turns out the sending of > the command precedes the reset of the function. On SLI-4 adapters, > t