[PATCH] libsas: fix "sysfs group not found" warnings at port teardown time

2015-05-20 Thread Dan Williams
s now exposes this problem. Libsas should delete all the devices from rphy down before deleting the parent port. Cc: Reported-by: Praveen Murali Tested-by: Praveen Murali Signed-off-by: Dan Williams --- drivers/scsi/libsas/sas_discover.c |6 +++--- drivers/scsi/libsas/sas_port.c |1

[PATCH v2] libsas: fix "sysfs group not found" warnings at port teardown time

2015-05-20 Thread Dan Williams
this problem. Libsas should delete all the devices from rphy down before deleting the parent port. Cc: Reported-by: Praveen Murali Tested-by: Praveen Murali Signed-off-by: Dan Williams --- v2: drop the "---" separators that will confuse git-am. Thanks Luis! drivers/scsi/

[for 4.1 PATCH resend] libsas: fix "sysfs group not found" warnings at port teardown time

2015-06-17 Thread Dan Williams
he devices from rphy down before deleting the parent port. Cc: Reported-by: Praveen Murali Tested-by: Praveen Murali Signed-off-by: Dan Williams --- drivers/scsi/libsas/sas_discover.c |6 +++--- drivers/scsi/libsas/sas_port.c |1 - 2 files changed, 3 insertions(+), 4 deletio

[PATCH resend] libsas: fix "sysfs group not found" warnings at port teardown time

2015-07-20 Thread Dan Williams
he devices from rphy down before deleting the parent port. Cc: Reported-by: Praveen Murali Tested-by: Praveen Murali Reviewed-by: Hannes Reinecke Signed-off-by: Dan Williams --- Hi Andrew, Can you take this through -mm. It's been on linux-scsi for a couple months, and Hanne

Re: [for 4.1 PATCH resend] libsas: fix "sysfs group not found" warnings at port teardown time

2015-07-22 Thread Dan Williams
On Wed, Jul 22, 2015 at 11:28 AM, James Bottomley wrote: > On Wed, 2015-06-17 at 23:22 -0400, Dan Williams wrote: >> Praveen reports: >> >> After some debugging this is what I have found >> >> sas_phye_loss_of_signal gets

Re: [for 4.1 PATCH resend] libsas: fix "sysfs group not found" warnings at port teardown time

2015-07-27 Thread Dan Williams
On Mon, Jul 27, 2015 at 8:17 AM, James Bottomley wrote: > On Wed, 2015-07-22 at 14:08 -0700, Dan Williams wrote: >> On Wed, Jul 22, 2015 at 11:28 AM, James Bottomley >> wrote: >> > >> >> } >> >> >> >> void sas_device_set_phy(struct d

Re: [for 4.1 PATCH resend] libsas: fix "sysfs group not found" warnings at port teardown time

2015-07-27 Thread Dan Williams
On Mon, Jul 27, 2015 at 10:11 AM, James Bottomley wrote: > On Mon, 2015-07-27 at 08:48 -0700, Dan Williams wrote: >> On Mon, Jul 27, 2015 at 8:17 AM, James Bottomley >> wrote: >> > On Wed, 2015-07-22 at 14:08 -0700, Dan Williams wrote: >> >> On Wed, Jul 2

Re: [for 4.1 PATCH resend] libsas: fix "sysfs group not found" warnings at port teardown time

2015-07-27 Thread Dan Williams
On Mon, Jul 27, 2015 at 11:07 AM, James Bottomley wrote: > On Mon, 2015-07-27 at 08:48 -0700, Dan Williams wrote: >> On Mon, Jul 27, 2015 at 8:17 AM, James Bottomley >> wrote: >> > On Wed, 2015-07-22 at 14:08 -0700, Dan Williams wrote: >> >> I don't

Re: [for 4.1 PATCH resend] libsas: fix "sysfs group not found" warnings at port teardown time

2015-07-27 Thread Dan Williams
On Mon, Jul 27, 2015 at 11:38 AM, James Bottomley wrote: > No, that seems to be the intent of the prior code. The reason port > visibility goes immediately (along with all associated phys), is that > the port is ready for reuse as soon as sas_deform_port() returns. > Destroying the subtree is lef

Re: [PATCH] scsi: fix scsi_error_handler vs. scsi_host_dev_release race

2015-08-27 Thread Dan Williams
he most straightforward solution seems to be to invert the ordering of > the set_current_state and kthread_should_stop. > > The issue has been noticed during reboot test on a 3.0 based kernel but > the current code seems to be affected in the same way. > > Cc: stable # 3.6+ > R

Re: [PATCH v4 1/4] block: Add iocontext priority to request

2016-10-13 Thread Dan Williams
On Thu, Oct 13, 2016 at 12:53 PM, Adam Manzanares wrote: > Patch adds an association between iocontext ioprio and the ioprio of a > request. This value is set in blk_rq_set_prio which takes the request and > the ioc as arguments. If the ioc is valid in blk_rq_set_prio then the > iopriority of the

Re: [PATCH v4 1/4] block: Add iocontext priority to request

2016-10-13 Thread Dan Williams
On Thu, Oct 13, 2016 at 1:09 PM, Jens Axboe wrote: > On 10/13/2016 02:06 PM, Dan Williams wrote: >> >> On Thu, Oct 13, 2016 at 12:53 PM, Adam Manzanares >> wrote: >>> >>> Patch adds an association between iocontext ioprio and the ioprio of a >>&g

Re: [PATCH v4 1/4] block: Add iocontext priority to request

2016-10-13 Thread Dan Williams
On Thu, Oct 13, 2016 at 1:24 PM, Jens Axboe wrote: > On 10/13/2016 02:19 PM, Dan Williams wrote: >> >> On Thu, Oct 13, 2016 at 1:09 PM, Jens Axboe wrote: >>> >>> On 10/13/2016 02:06 PM, Dan Williams wrote: >>>> >>>> >>&

Re: [RFC PATCH] scsi: libsas: fix WARN on device removal

2016-11-09 Thread Dan Williams
On Wed, Nov 9, 2016 at 9:36 AM, John Garry wrote: > On 09/11/2016 12:28, John Garry wrote: >> >> On 03/11/2016 14:58, John Garry wrote: >>> >>> The following patch introduces an annoying WARN >>> when a device is removed from the SAS topology: >>> [SCSI] libsas: prevent domain rediscovery competin

Re: [RFC PATCH] scsi: libsas: fix WARN on device removal

2016-11-09 Thread Dan Williams
On Wed, Nov 9, 2016 at 11:09 AM, Dan Williams wrote: > On Wed, Nov 9, 2016 at 9:36 AM, John Garry wrote: >> On 09/11/2016 12:28, John Garry wrote: >>> >>> On 03/11/2016 14:58, John Garry wrote: >>>> >>>> The following patch introduces an annoy

Re: [RFC PATCH] scsi: libsas: fix WARN on device removal

2016-11-17 Thread Dan Williams
On Thu, Nov 17, 2016 at 7:23 AM, John Garry wrote: > On 11/11/2016 08:49, wangyijing wrote: > > I have not seen the flutter issue. I am just trying to solve the > horrible WARN dump. > However I do understand that there may be a issue related to how we > queue the events; there

Re: [RFC PATCH] scsi: libsas: fix WARN on device removal

2016-11-18 Thread Dan Williams
On Fri, Nov 18, 2016 at 1:00 AM, John Garry wrote: > On 18/11/2016 01:53, Dan Williams wrote: >> >> On Thu, Nov 17, 2016 at 7:23 AM, John Garry wrote: >>> >>> On 11/11/2016 08:49, wangyijing wrote: >>>>>>> >>>>>>&g

Re: [RFC PATCH] scsi: libsas: fix WARN on device removal

2016-11-21 Thread Dan Williams
On Mon, Nov 21, 2016 at 7:16 AM, John Garry wrote: > @Maintainers, would you be willing to accept this patch as an interim > fix > for the dastardly WARN while we try to fix the flutter issue? To me this adds a bug to quiet a benign, albeit noisy, warning. >>>

[RFC PATCH] scsi, block: fix duplicate bdi name registration crashes

2017-01-28 Thread Dan Williams
o/?l=linux-scsi&m=147116857810716&w=4 [2]: http://marc.info/?l=linux-block&m=148554717109098&w=2 Cc: James Bottomley Cc: Bart Van Assche Cc: "Martin K. Petersen" Cc: Christoph Hellwig Cc: Jens Axboe Reported-by: Omar Sandoval Signed-off-by: Dan Williams --- block/blk-

Re: [RFC PATCH] scsi, block: fix duplicate bdi name registration crashes

2017-01-29 Thread Dan Williams
On Sun, Jan 29, 2017 at 11:22 PM, Omar Sandoval wrote: > On Mon, Jan 30, 2017 at 08:05:52AM +0100, Hannes Reinecke wrote: >> On 01/29/2017 05:58 AM, Dan Williams wrote: >> > Warnings of the following form occur because scsi reuses a devt number >> > while the block la

Re: [RFC PATCH] scsi, block: fix duplicate bdi name registration crashes

2017-01-30 Thread Dan Williams
On Mon, Jan 30, 2017 at 4:24 AM, Christoph Hellwig wrote: > Hi Dan, > > this looks mostly fine to me. A few code comments below, but except > for this there is another issue with it: We still have drivers > that share a single request_queue for multiple gendisks, so I wonder > > Also I think you

Re: [RFC PATCH] scsi, block: fix duplicate bdi name registration crashes

2017-01-30 Thread Dan Williams
On Mon, Jan 30, 2017 at 4:24 AM, Christoph Hellwig wrote: > Hi Dan, > > this looks mostly fine to me. A few code comments below, but except > for this there is another issue with it: We still have drivers > that share a single request_queue for multiple gendisks, so I wonder scsi drivers or oth

[PATCH v2] scsi, block: fix duplicate bdi name registration crashes

2017-02-01 Thread Dan Williams
o/?l=linux-scsi&m=147116857810716&w=4 [2]: http://marc.info/?l=linux-block&m=148554717109098&w=2 Cc: James Bottomley Cc: Bart Van Assche Cc: "Martin K. Petersen" Cc: Christoph Hellwig Cc: Jens Axboe Cc: Jan Kara Reported-by: Omar Sandoval Signed-off-by: Dan Williams

[PATCH v3] scsi, block: fix duplicate bdi name registration crashes

2017-02-01 Thread Dan Williams
o/?l=linux-scsi&m=147116857810716&w=4 [2]: http://marc.info/?l=linux-block&m=148554717109098&w=2 Cc: James Bottomley Cc: Bart Van Assche Cc: "Martin K. Petersen" Cc: Christoph Hellwig Cc: Jens Axboe Cc: Jan Kara Reported-by: Omar Sandoval Tested-by: Omar Sandoval Sign

Re: [PATCH v3] scsi, block: fix duplicate bdi name registration crashes

2017-02-01 Thread Dan Williams
On Wed, Feb 1, 2017 at 2:35 PM, Jens Axboe wrote: > On 02/01/2017 02:05 PM, Dan Williams wrote: >> Warnings of the following form occur because scsi reuses a devt number >> while the block layer still has it referenced as the name of the bdi >> [1]: >> >> WA

Re: [lkp-robot] [scsi, block] 0dba1314d4: WARNING:at_fs/sysfs/dir.c:#sysfs_warn_dup

2017-02-06 Thread Dan Williams
On Mon, Feb 6, 2017 at 8:09 PM, Jens Axboe wrote: > On 02/06/2017 05:14 PM, James Bottomley wrote: >> On Sun, 2017-02-05 at 21:13 -0800, Dan Williams wrote: >>> On Sun, Feb 5, 2017 at 1:13 AM, Christoph Hellwig wrote: >>>> Dan, >>>> >>>&g

Re: [lkp-robot] [scsi, block] 0dba1314d4: WARNING:at_fs/sysfs/dir.c:#sysfs_warn_dup

2017-02-09 Thread Dan Williams
On Wed, Feb 8, 2017 at 4:08 PM, James Bottomley wrote: > On Mon, 2017-02-06 at 21:42 -0800, Dan Williams wrote: [..] >> ...but it reproduces on current mainline with the same config. I >> haven't spotted what makes scsi_debug behave like this. > > Looking at the config

Re: [PATCH 1/3] libsas: modify SATA error handler

2014-08-06 Thread Dan Williams
On Wed, Aug 6, 2014 at 3:50 AM, Xiangliang Yu wrote: > Hi, Dan & James > How about the patches about support for PM? > Two months had passed since I submitted the patches. > Thanks! > Did you address my review comments? -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in t

Re: [PATCH 1/3] libsas: modify SATA error handler

2014-08-07 Thread Dan Williams
[ adding yuxia...@marvell.com ] On Tue, Jun 3, 2014 at 6:41 PM, Dan Williams wrote: > Hi, some notes below: > > On Thu, Apr 24, 2014 at 6:27 AM, Xiangliang Yu wrote: >> Add support for SATA port softreset and port multiplier error >> handling. > > Some more detailed n

Re: [PATCH 1/3] libsas: modify SATA error handler

2014-08-25 Thread Dan Williams
Some more comments below. [..] >>> + >>> + pmp = sata_srst_pmp(link); >>> + >>> + msecs = 0; >>> + now = jiffies; >>> + if (time_after(deadline, now)) >>> + msecs = jiffies_to_msecs(deadline - now); >>> + >>> + memset(&tf, 0, sizeof(struct ata_taskfile))

Re: [PATCH v2 1/2] scsi: fix race between simultaneous decrements of ->host_failed

2016-05-31 Thread Dan Williams
#x27;t be handled forever. > > Use atomic type for ->host_failed to fix this race. > > This fixes the problem introduced in > commit 50824d6c5657 ("[SCSI] libsas: async ata-eh"). > > Reviewed-by: Christoph Hellwig > Signed-off-by: Wei Fang Acked-by: Dan Willia

Re: [PATCH v2 1/2] scsi: fix race between simultaneous decrements of ->host_failed

2016-05-31 Thread Dan Williams
On Tue, May 31, 2016 at 8:21 PM, Dan Williams wrote: > On Tue, May 31, 2016 at 1:38 AM, Wei Fang wrote: >> sas_ata_strategy_handler() adds the works of the ata error handler >> to system_unbound_wq. This workqueue asynchronously runs work items, >> so the ata error hand

Re: [PATCH v2 1/3] badblocks: Add core badblock management code

2015-12-08 Thread Dan Williams
On Tue, Dec 8, 2015 at 1:08 PM, Verma, Vishal L wrote: > On Wed, 2015-12-09 at 08:03 +1100, NeilBrown wrote: >> On Sat, Dec 05 2015, Verma, Vishal L wrote: >> > > >> > > > +int badblocks_clear(struct badblocks *bb, sector_t s, int >> > > > sectors) >> > > > +{ >> > > [...] >> > > > +#define DO_DEB

Re: [PATCH v4 0/3] Badblock tracking for gendisks

2015-12-10 Thread Dan Williams
Hi Jens, Are you on-board with this approach? Any concerns with me carrying this through the nvdimm tree along with our other pending error-handling enabling? -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.kernel.org More majord

Re: [PATCH] scsi: restart list search after unlock in scsi_remove_target

2015-10-19 Thread Dan Williams
On Mon, Oct 19, 2015 at 8:56 AM, Christoph Hellwig wrote: > On Mon, Oct 19, 2015 at 08:36:23AM -0700, Bart Van Assche wrote: >> Thanks for looking into this. However, I think we need a motivation in the >> patch description why this patch does not reintroduce the soft lockup >> documented in patch

Re: [PATCH 2/2] Restart list search after unlock in scsi_remove_target

2015-11-05 Thread Dan Williams
On Wed, Nov 4, 2015 at 2:44 PM, James Bottomley wrote: [..] > The fundamental problem with this is how have the conditions that caused > us to move away from list restart: > > commit bc3f02a795d3b4faa99d37390174be2a75d091bd > Author: Dan Williams > Date: Tue Aug 28 2

Re: [PATCH 2/3] block: Add badblock management for gendisks

2015-11-24 Thread Dan Williams
On Tue, Nov 24, 2015 at 12:10 PM, Verma, Vishal L wrote: > On Tue, 2015-11-24 at 14:14 -0500, Jeff Moyer wrote: >> >> I'm not sure whether it makes sense to continue without badblock >> management for the RAID code. I was hoping Neil would comment on >> that. >> >> -Jeff > > Not sure I follow? I

Re: eSATA Drive Detection issues on mvsas

2013-10-15 Thread Dan Williams
On Tue, Oct 15, 2013 at 5:15 PM, Praveen Murali wrote: > Dan/James, > Can you please take a look at this and let me know if I am at the right > place? Or point me in the right direction? As I understand, this deost not > look like an mvsas driver issue. > Looks like a latent bug in libsas to me.

Re: [PATCH 3/3] Fix device detection issues with mvsas driver

2013-10-15 Thread Dan Williams
On Thu, Jun 21, 2012 at 10:05 AM, Praveen Murali wrote: > here is the updated patch. > > On Thu, 2012-06-21 at 09:48 -0700, Dan Williams wrote: >> On Thu, Jun 21, 2012 at 9:41 AM, Praveen Murali wrote: >> > Ok, do you want me to regenerate the patch? >> &g

Re: eSATA Drive Detection issues on mvsas

2013-10-17 Thread Dan Williams
On Wed, Oct 16, 2013 at 10:28 AM, Praveen Murali wrote: >> diff --git a/drivers/scsi/libsas/sas_ata.c b/drivers/scsi/libsas/sas_ata.c >> index 161c98efade9..d0fb99d5da95 100644 >> --- a/drivers/scsi/libsas/sas_ata.c >> +++ b/drivers/scsi/libsas/sas_ata.c >> @@ -211,7 +211,7 @@ static unsigned int

[PATCH] libsas: fix usage of ata_tf_to_fis

2013-10-22 Thread Dan Williams
Murali Tested-by: Praveen Murali Signed-off-by: Dan Williams --- drivers/scsi/libsas/sas_ata.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/scsi/libsas/sas_ata.c b/drivers/scsi/libsas/sas_ata.c index 161c98efade9..d0fb99d5da95 100644 --- a/drivers/scsi/libsas/sa

Re: Backporting 'libsas: fix timeout vs completion race' and related patches to 3.2.51 recommended?

2013-10-28 Thread Dan Williams
On Fri, Oct 25, 2013 at 5:47 PM, Amit Uttamchandani wrote: > Hello, > > Tested kernel 3.4.62, which introduces: > > libsas error handling + discovery patch set > > http://lwn.net/Articles/476986/ > > Is it advisable for me to backport this to v3.2.51? > If you need reliable ata error handling v

[PATCH] isci: fix reset timeout handling

2013-12-09 Thread Dan Williams
sted-by: Xun Ni Signed-off-by: Dan Williams --- drivers/scsi/isci/port_config.c |5 - drivers/scsi/isci/task.c|2 +- 2 files changed, 1 insertions(+), 6 deletions(-) diff --git a/drivers/scsi/isci/port_config.c b/drivers/scsi/isci/port_config.c index 85c77f6b802b..4b84d204db

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

2014-01-03 Thread Dan Williams
On Thu, Jan 2, 2014 at 2:31 AM, Suresh Thiagarajan wrote: > > > On Fri, Dec 27, 2013 at 9:48 PM, Oleg Nesterov wrote: >> On 12/24, Suresh Thiagarajan wrote: >>> >>> Below is a small pseudo code on protecting/serializing the flag for global >>> access. >>> struct temp >>> { >>> ... >>>

[PATCH v2] isci: fix reset timeout handling

2014-01-03 Thread Dan Williams
ink it must indicate to libata that recovery ends by returning -ENODEV from ->lldd_I_T_nexus_reset(). Cc: Cc: Maciej Patelczyk Cc: Dave Jiang Acked-by: Lukasz Dorau Reported-by: David Milburn Reported-by: Xun Ni Tested-by: Xun Ni Signed-off-by: Dan Williams --- v2: Dave reported the build

Re: [PATCH 3/6] libata: resume in the background

2014-01-10 Thread Dan Williams
On Mon, Dec 16, 2013 at 3:30 PM, Phillip Susi wrote: > Don't block the resume path waiting for the disk to > spin up. > --- > drivers/ata/libata-core.c | 10 -- > 1 file changed, 4 insertions(+), 6 deletions(-) > > diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c > index

Re: [PATCH 3/6] libata: resume in the background

2014-01-10 Thread Dan Williams
On Fri, Jan 10, 2014 at 6:25 PM, Phillip Susi wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA512 > > On 01/10/2014 05:26 PM, Dan Williams wrote: >> I was going to comment that this leaves us open to a race to >> submit new i/o before recovery starts, but scsi_sched

Re: [PATCH/RESEND v2 1/2] Hard disk S3 resume time optimization

2014-01-10 Thread Dan Williams
On Fri, Jan 10, 2014 at 6:13 PM, Phillip Susi wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA512 > > On 01/10/2014 06:11 PM, Brandt, Todd E wrote: >> Yes yours is simpler, but it also opens a potential memory issue >> by passing a static int as the return location for the error value. >> I

Re: [PATCH/RESEND v2 1/2] Hard disk S3 resume time optimization

2014-01-13 Thread Dan Williams
On Mon, Jan 13, 2014 at 12:06 PM, Todd E Brandt wrote: > On Fri, Jan 10, 2014 at 07:13:11PM -0800, Dan Williams wrote: >> On Fri, Jan 10, 2014 at 6:13 PM, Phillip Susi wrote: >> > -BEGIN PGP SIGNED MESSAGE- >> > Hash: SHA512 >> > >> >

Re: [PATCH/RESEND v2 1/2] Hard disk S3 resume time optimization

2014-01-13 Thread Dan Williams
On Mon, Jan 13, 2014 at 3:51 PM, Todd E Brandt wrote: > On Mon, Jan 13, 2014 at 12:37:01PM -0800, Dan Williams wrote: >> On Mon, Jan 13, 2014 at 12:06 PM, Todd E Brandt >> > Actually there's one other reason. In the ata_port_request_pm function it >> > checks to

Re: Disk spin-up optimization during system resume

2014-01-17 Thread Dan Williams
On Fri, Jan 17, 2014 at 6:57 AM, Alan Stern wrote: > On Thu, 16 Jan 2014, Todd E Brandt wrote: >> My patch makes ata port and scsi disk resume 'non-blocking' (asynchronous >> with respect to system resume). Which means once they're called the power >> manager pays no more attention to them and wil

Re: Disk spin-up optimization during system resume

2014-01-17 Thread Dan Williams
On Fri, Jan 17, 2014 at 12:49 PM, Phillip Susi wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 1/17/2014 2:31 PM, Dan Williams wrote: >> Once dpm_resume of the disk is asynchronous, is there much >> incremental gain by further deferring spin up? The drawba

Re: [PATCH v4 1/2] asynchronous ata port resume

2014-01-17 Thread Dan Williams
On Wed, Jan 15, 2014 at 8:38 PM, Todd E Brandt wrote: > On resume, the ATA port driver currently waits until the AHCI controller > finishes executing the port wakeup command. This patch changes the > ata_port_resume callback to issue the wakeup and then return immediately, > thus allowing the next

Re: Disk spin-up optimization during system resume

2014-01-17 Thread Dan Williams
On Fri, Jan 17, 2014 at 5:41 PM, Alan Stern wrote: > On Fri, 17 Jan 2014, Tejun Heo wrote: > >> On Fri, Jan 17, 2014 at 03:15:54PM -0500, Alan Stern wrote: >> > You will have to argue this point with Phillip. >> > >> > If necessary, we could add a sysfs attribute to force a spin-up during >> > sys

Re: Disk spin-up optimization during system resume

2014-01-17 Thread Dan Williams
On Fri, Jan 17, 2014 at 7:18 PM, Phillip Susi wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA512 > > On 01/17/2014 05:17 PM, Dan Williams wrote: >> Well, "at all" is overstating it. The system was idle and now >> it's being woken up to do some work

Re: [PATCH] isci: correct erroneous for_each_isci_host macro

2014-01-20 Thread Dan Williams
; > The loop has been corrected. > This patch fixes the above oops. > > Signed-off-by: Lukasz Dorau > Reviewed-by: Maciej Patelczyk > Tested-by: Lukasz Dorau > Cc: Dan Williams > Cc: Dave Jiang > Cc: > --- > drivers/scsi/isci/host.h |6 +++--- > 1 file

Re: Disk spin-up optimization during system resume

2014-01-21 Thread Dan Williams
On Sat, Jan 18, 2014 at 6:08 AM, Alan Stern wrote: > On Fri, 17 Jan 2014, Dan Williams wrote: > >> I think it's a bit of an interface surprise to have pm_runtime disable >> have side effects only for scsi_disk devices. I think lazy_resume >> needs to be an explici

Re: Disk spin-up optimization during system resume

2014-01-21 Thread Dan Williams
On Tue, Jan 21, 2014 at 7:44 AM, Alan Stern wrote: > On Tue, 21 Jan 2014, Dan Williams wrote: > >> On Sat, Jan 18, 2014 at 6:08 AM, Alan Stern >> wrote: >> > On Fri, 17 Jan 2014, Dan Williams wrote: >> > >> >> I think it's a bit of an int

Re: Disk spin-up optimization during system resume

2014-01-21 Thread Dan Williams
On Tue, Jan 21, 2014 at 8:18 AM, Dan Williams wrote: > On Tue, Jan 21, 2014 at 7:44 AM, Alan Stern wrote: >> On Tue, 21 Jan 2014, Dan Williams wrote: >> >>> On Sat, Jan 18, 2014 at 6:08 AM, Alan Stern >>> wrote: >>> > On Fri, 17 Jan 2014, Dan Willi

[LSF/MM TOPIC][ATTEND] Plumbing I/O Cache / Tiered Storage Hints

2014-01-28 Thread Dan Williams
In addition to disk drives with internally tiered-storage (solid-state + magnetic media) the kernel has also grown native I/O-caching / tiered-storage implementations in bcache and dm-cache. Currently, all these solutions depend on heuristics to determine what tier the data referenced in an I/O be

Re: [LSF/MM TOPIC][ATTEND] Plumbing I/O Cache / Tiered Storage Hints

2014-01-31 Thread Dan Williams
On Tue, Jan 28, 2014 at 2:57 PM, Dan Williams wrote: > In addition to disk drives with internally tiered-storage (solid-state > + magnetic media) the kernel has also grown native I/O-caching / > tiered-storage implementations in bcache and dm-cache. > > Currently, all these solu

Re: [PATCH] scsi/isci/port_config: Fix a infinite loop.

2014-02-06 Thread Dan Williams
On Tue, Jul 16, 2013 at 7:54 PM, Xinghai Yu wrote: > It seems the "phy_index++;" have been placed in wrong place, without it > the while circle up will do a infinite loop. > > Signed-off-by: Xinghai Yu > --- > drivers/scsi/isci/port_config.c |2 +- > 1 files changed, 1 insertions(+), 1 delet

[PATCH 3/4] isci: fix needless ata reset escalations

2014-02-06 Thread Dan Williams
dev->sata_dev.fis[2] = ATA_ERR; The end effect is that isci is needlessly triggering hard resets when they are not necessary. Cc: Reported-by: Xun Ni Tested-by: Nelson Cheng Acked-by: Lukasz Dorau Signed-off-by: Dan Williams --- drivers/scsi/isci/request.c |8 ++-- 1 files

[PATCH 0/4] isci, libsas fixes for 3.4-rc2

2014-02-06 Thread Dan Williams
Hi James, Here are some collected fixes. All but patch 2 are tagged for -stable. Patch 1 and 4 have been on the list since before the 3.14 merge window, patch 2 and 3 are new. Please apply, thank you. [PATCH 1/4] isci: fix reset timeout handling [PATCH 2/4] scsi, libsas: introduce scmd_dbg() t

[PATCH 2/4] scsi, libsas: introduce scmd_dbg() to quiet false positive "timeout" messages

2014-02-06 Thread Dan Williams
Kumar Santhanam Cc: Sangeetha Gnanasekaran Cc: Nikith Ganigarakoppal Reported-by: Xun Ni Tested-by: Nelson Cheng Acked-by: Lukasz Dorau Signed-off-by: Dan Williams --- drivers/scsi/libsas/sas_scsi_host.c |2 +- include/scsi/scsi_device.h | 12 2 files changed,

[PATCH 4/4] isci: correct erroneous for_each_isci_host macro

2014-02-06 Thread Dan Williams
0x1b The loop has been corrected. This patch fixes kernel panic during entering the S3 state and the above oops. Signed-off-by: Lukasz Dorau Reviewed-by: Maciej Patelczyk Tested-by: Lukasz Dorau Cc: Dave Jiang Cc: Signed-off-by: Dan Williams --- drivers/scsi/isci/host.h |5 ++--- 1 files cha

[PATCH 1/4] isci: fix reset timeout handling

2014-02-06 Thread Dan Williams
ink it must indicate to libata that recovery ends by returning -ENODEV from ->lldd_I_T_nexus_reset(). Cc: Cc: Maciej Patelczyk Cc: Dave Jiang Acked-by: Lukasz Dorau Reported-by: David Milburn Reported-by: Xun Ni Tested-by: Xun Ni Signed-off-by: Dan Williams --- drivers/scsi/is

Re: [PATCH] scsi_transport_sas: move bsg destructor into sas_rphy_remove

2014-02-12 Thread Dan Williams
- sas_bsg_remove(shost, rphy); > - > transport_destroy_device(dev); > > put_device(dev); > @@ -1681,6 +1679,7 @@ sas_rphy_remove(struct sas_rphy *rphy) > } > > sas_rphy_unlink(rphy); > + sas_bsg_remove(NULL, rphy); > transport_rem

Re: mpt2sas driver barfs when force removing a drive on 3.13.1

2014-02-12 Thread Dan Williams
On Wed, Feb 12, 2014 at 9:41 AM, Richard Yao wrote: > You should use `git send-email` to send the patch to all of the people > listed by get_maintainer.pl: I see nothing wrong with the patch Joe originally submitted: http://marc.info/?l=linux-scsi&m=138609455422179&w=2 > > richard@desktop ~/deve

Re: [PATCH 0/4] isci, libsas fixes for 3.4-rc2

2014-02-24 Thread Dan Williams
On Sun, Feb 23, 2014 at 12:12 PM, James Bottomley wrote: > > On Thu, 2014-02-06 at 12:22 -0800, Dan Williams wrote: >> Hi James, >> >> Here are some collected fixes. All but patch 2 are tagged for -stable. >> >> Patch 1 and 4 have been on the list since befo

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

2014-03-05 Thread Dan Williams
-scsi&m=138995409532286&w=2 Cc: Phillip Susi Cc: Alan Stern Suggested-by: Tejun Heo Signed-off-by: Todd Brandt Signed-off-by: Dan Williams --- drivers/ata/libata-core.c | 75 +++-- drivers/ata/libata-eh.c | 13 +-- drivers/scsi/libsa

[PATCH v5 3/3] scsi: async sd resume

2014-03-05 Thread Dan Williams
the async queue] Signed-off-by: Dan Williams --- drivers/scsi/scsi.c |3 + drivers/scsi/scsi_pm.c | 115 -- drivers/scsi/scsi_priv.h |1 drivers/scsi/sd.c|1 4 files changed, 95 insertions(+), 25 deletions(-) diff --git

[PATCH v5 0/3] Accelerate Storage Resume (2x or more)

2014-03-05 Thread Dan Williams
info/?l=linux-ide&m=138984698103487&w=2 [PATCH v4 1/2] http://marc.info/?l=linux-ide&m=138984713203515&w=2 [PATCH v4 2/2] http://marc.info/?l=linux-ide&m=138984722003539&w=2 --- Dan Williams (2): libata, libsas: kill pm_result and related cleanup scsi: async sd

[PATCH v5 2/3] libata: async resume

2014-03-05 Thread Dan Williams
starts on the given ata_port. Reference: https://01.org/suspendresume/blogs/tebrandt/2013/hard-disk-resume-optimization-simpler-approach Cc: Len Brown Cc: Phillip Susi Cc: Alan Stern Signed-off-by: Todd Brandt [djbw: rebase on cleanup patch, changelog wordsmithing] Signed-off-by: Dan Williams

Re: [PATCH RESEND] SCSI: sd: don't fail if the device doesn't recognize SYNCHRONIZE CACHE

2014-03-05 Thread Dan Williams
mann > Tested-by: Daniel Mack > CC: Oliver Neukum > CC: > --- > Hi, > > this patch has been around for awhile, but hasn't gained much > attraction, and hasn't been merged anywhere yet. Which is sad, > as it fixes a bug on real hardware when going to suspend :

Re: [PATCH v5 3/3] scsi: async sd resume

2014-03-07 Thread Dan Williams
On Fri, Mar 7, 2014 at 7:42 AM, Alan Stern wrote: > On Wed, 5 Mar 2014, Dan Williams wrote: > >> async_schedule() sd resume work to allow disks and other devices to >> resume in parallel. >> >> This moves the entirety of scsi_device resume to an async context to >

Re: [PATCH v5 3/3] scsi: async sd resume

2014-03-07 Thread Dan Williams
one > function call. [..] > Given that this function is used in only one place; I would put it > inline. > Ended up putting the dev->driver->pm lookup into scsi_dev_type_{suspend| resume} directly, and open coding the pm->op is NULL check. Moved the lookup of the async functi

Re: [PATCH v5 3/3] scsi: async sd resume

2014-03-10 Thread Dan Williams
On Mon, Mar 10, 2014 at 1:43 PM, Tejun Heo wrote: > On Fri, Mar 07, 2014 at 06:52:06PM -0800, Dan Williams wrote: >> From: Dan Williams >> >> async_schedule() sd resume work to allow disks and other devices to >> resume in parallel. >> >> This moves the ent

Re: [PATCH v5 3/3] scsi: async sd resume

2014-03-10 Thread Dan Williams
On Mon, Mar 10, 2014 at 1:59 PM, Alan Stern wrote: > On Mon, 10 Mar 2014, Dan Williams wrote: > >> > The only thing which is a bit concerning is that this doesn't have any >> > throttling mechanism for simultaneous wakeups. Would this be able to >> > blow

Re: [PATCH v5 3/3] scsi: async sd resume

2014-03-10 Thread Dan Williams
On Mon, Mar 10, 2014 at 9:19 PM, James Bottomley wrote: > On Mon, 2014-03-10 at 16:59 -0400, Alan Stern wrote: >> On Mon, 10 Mar 2014, Dan Williams wrote: >> >> > > The only thing which is a bit concerning is that this doesn't have any >> > > throttlin

Re: [PATCH v5 3/3] scsi: async sd resume

2014-03-10 Thread Dan Williams
On Mon, Mar 10, 2014 at 10:16 PM, James Bottomley wrote: > On Mon, 2014-03-10 at 21:47 -0700, Dan Williams wrote: >> On Mon, Mar 10, 2014 at 9:19 PM, James Bottomley >> wrote: >> > On Mon, 2014-03-10 at 16:59 -0400, Alan Stern wrote: >> >> On

Re: [PATCH v5 3/3] scsi: async sd resume

2014-03-14 Thread Dan Williams
On Mon, Mar 10, 2014 at 11:29 PM, James Bottomley wrote: >> > In the long game, though this whole debate is moot: setups with hard >> > wired start times adhere to them regardless of what the system does, so >> > they ignore start unit commands. Systems without hard wired start times >> > can usu

[PATCH v6 0/3] Accelerate Storage Resume (2x or more)

2014-03-14 Thread Dan Williams
org/suspendresume/blogs/tebrandt/2013/hard-disk-resume-optimization-simpler-approach [2]: Todd's v4 patchset: [PATCH v4 0/2] http://marc.info/?l=linux-ide&m=138984698103487&w=2 [PATCH v4 1/2] http://marc.info/?l=linux-ide&m=138984713203515&w=2 [PATCH v4 2/2] http://marc.info/?l=

[PATCH v6 2/3] libata: async resume

2014-03-14 Thread Dan Williams
starts on the given ata_port. Reference: https://01.org/suspendresume/blogs/tebrandt/2013/hard-disk-resume-optimization-simpler-approach Cc: Len Brown Cc: Phillip Susi Cc: Alan Stern Signed-off-by: Todd Brandt [djbw: rebase on cleanup patch, changelog wordsmithing] Signed-off-by: Dan Williams

[PATCH v6 3/3] scsi: async sd resume

2014-03-14 Thread Dan Williams
g fix and clean up suggestion] Acked-by: Alan Stern Suggested-by: Todd Brandt [djbw: kick all resume work to the async queue] Signed-off-by: Dan Williams --- drivers/scsi/Kconfig |3 + drivers/scsi/scsi.c |3 + drivers/scsi/scsi_pm.c |

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

2014-03-14 Thread Dan Williams
532286&w=2 Cc: Phillip Susi Cc: Alan Stern Suggested-by: Tejun Heo Signed-off-by: Todd Brandt Signed-off-by: Dan Williams --- drivers/ata/libata-core.c | 135 ++--- drivers/ata/libata-eh.c | 13 +--- drivers/scsi/libsas/sas_ata.c | 35 +

Re: [PATCH v5 3/3] scsi: async sd resume

2014-03-15 Thread Dan Williams
On Sat, Mar 15, 2014 at 2:47 PM, James Bottomley wrote: > On Fri, 2014-03-14 at 13:11 -0700, Dan Williams wrote: >> On Mon, Mar 10, 2014 at 11:29 PM, James Bottomley >> wrote: >> >> > In the long game, though this whole debate is moot: setups with hard >> &

Re: [PATCH v5 3/3] scsi: async sd resume

2014-03-17 Thread Dan Williams
On Sun, 2014-03-16 at 11:21 -0700, James Bottomley wrote: > On Sat, 2014-03-15 at 16:35 -0700, Dan Williams wrote: > > On Sat, Mar 15, 2014 at 2:47 PM, James Bottomley > > wrote: > > > On Fri, 2014-03-14 at 13:11 -0700, Dan Williams wrote: > > >> On Mon, Mar 1

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 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 proc

Re: [PATCH -next] libata.h: add stub for ata_sas_port_resume

2014-03-19 Thread Dan Williams
msleep(struct ata_port *ap, unsigned int msecs); > > Applied to libata/for-3.15. > > Thanks. Agh, my mistake... one more incremental fixlet: 8<-- Subject: libata: remove unused ata_sas_port_async_resume() stub From: Dan Williams Commit bc6e7c4b0d1a "libata, l

Re: Deadlock in usb-storage error handling

2014-03-19 Thread Dan Williams
On Wed, Mar 19, 2014 at 1:31 PM, Alan Stern wrote: > On Wed, 19 Mar 2014, Andreas Reis wrote: > >> I've uploaded a dmesg with the new debugging patch to bugzilla: >> https://bugzilla.kernel.org/attachment.cgi?id=130041 > > Thanks. I have now managed to reproduce many of the features of this > pro

Re: [PATCH v5 3/3] scsi: async sd resume

2014-03-20 Thread Dan Williams
On Mon, 2014-03-17 at 11:20 -0700, Dan Williams wrote: > On Sun, 2014-03-16 at 11:21 -0700, James Bottomley wrote: > > On Sat, 2014-03-15 at 16:35 -0700, Dan Williams wrote: > > > On Sat, Mar 15, 2014 at 2:47 PM, James Bottomley > > > > Hm, OK, if this is tied at the

[GIT PULL] async scsi resume for 3.15

2014-04-10 Thread Dan Williams
c-scsi-resume for you to fetch changes up to 3c31b52f96f7b559d950b16113c0f68c72a1985e: scsi: async sd resume (2014-04-10 15:30:35 -0700) -------- Dan Williams (1): scsi: async sd resume drivers/scsi/Kconfig | 3 ++ drivers/sc

Re: [GIT PULL] async scsi resume for 3.15

2014-04-11 Thread Dan Williams
On Fri, Apr 11, 2014 at 11:20 AM, James Bottomley wrote: > On Thu, 2014-04-10 at 18:24 -0700, Dan Williams wrote: >> Hi Linus, >> >> James might still be in the process of sending this your way. However, >> given the proximity to -rc1, my reasoning for sending th

Re: Please help me to review the patch about supporting SATA PM in LIBSAS

2014-04-17 Thread Dan Williams
On Wed, Apr 16, 2014 at 8:07 PM, xiangliang yu wrote: > hi, > > The patch is support SATA PM device and can find all devices that is > attached to PM. > Until now, i have tested the identified, hot-plug and IO function and > result is ok except one mvsas timeout issue. > i'll continue to debug mv

Re: Please help me to review the patch about supporting SATA PM in LIBSAS

2014-04-18 Thread Dan Williams
On Thu, Apr 17, 2014 at 9:03 AM, Dan Williams wrote: > On Wed, Apr 16, 2014 at 8:07 PM, xiangliang yu wrote: >> hi, >> >> The patch is support SATA PM device and can find all devices that is >> attached to PM. >> Until now, i have tested the identified, hot-plug

Re: 3.2.57 regression: isci driver broken: Unable to reset I T nexus?

2014-04-28 Thread Dan Williams
[ adding Ben ] On Mon, Apr 28, 2014 at 10:22 AM, Ondrej Zary wrote: > On Monday 28 April 2014 18:51:44 Jiang, Dave wrote: >> On Mon, 2014-04-28 at 16:28 +, Ondrej Zary wrote: >> > On Monday 28 April 2014 17:50:29 Jiang, Dave wrote: >> > > On Mon, 2014-04-28 at 13:03 +0200, Ondrej Zary wrote:

Re: [PATCH 0/3] libsas: add support for port multiplier

2014-05-02 Thread Dan Williams
On Fri, May 2, 2014 at 8:36 AM, Tejun Heo wrote: > On Thu, Apr 24, 2014 at 09:27:03PM +0800, Xiangliang Yu wrote: >> This patch set will support SATA port multiplier(PM) in LIBSAS. >> >> LIBSAS is need to implement several key handling to support SATA PM: >> First,low level driver notify libsas th

Re: [PATCH RESEND] scsi_transport_sas: move bsg destructor into sas_rphy_remove

2014-05-02 Thread Dan Williams
t found for kobject on mpt2sas unload >> http://marc.info/?t=13849746004 >> >> (patch + ACK + comments) >> http://marc.info/?t=13860945551 >> >> (gentoo, LSI repro) >> mpt2sas driver barfs when force removing a drive on 3.13.1 >> ht

Re: [PATCH 1/3] libsas: modify SATA error handler

2014-06-03 Thread Dan Williams
On Tue, Jun 3, 2014 at 12:13 AM, Xiangliang Yu wrote: > Hi, > > How about the patch? > I'll take a look today. Sorry for the latency. -- 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 http://vger

  1   2   3   >