Re: How to increase RAID/HBA controller's timeout?

2016-10-04 Thread Dāvis Mosāns
> Well, this looks more like the ATA error recovery not working properly; > libata-eh is trying to reset the link (that's the 'hard resetting link' > message), but after that the device doesn't respond (that's the 'failed > to IDENTIFY' message). > So it's not so much a wrong timeout, it's a wrong

How to increase RAID/HBA controller's timeout?

2016-10-02 Thread Dāvis Mosāns
I've HighPoint RocketRAID 2760A which uses mvsas driver. And I need to increase it's timeout because it timeouts too early and doesn't allow HDD to finish it's recovery routine for unreadable sector (that HDD doesn't support TLER) I've increased # echo 300 > /sys/block/sdd/device/timeout # echo

Improve device reset for failed HDD

2016-05-23 Thread Dāvis Mosāns
Hi! I've a Seagate Barracuda 7200.14 (ST2000DM001-9YN164) 2TB HDD with some bad sectors and when they're accessed it causes device to fail. It's attached to HighPoint RocketRAID 2760 HBA (mvsas) and kernel 4.6 when accesing bad sector in log can see: kernel:

Re: [PATCH] mvsas:Fix possible NULL pointer deference in mvs_dev_found_notify

2016-03-09 Thread Dāvis Mosāns
2016-03-09 15:58 GMT+02:00 Nicholas Krause : > This adds properly checking after the call to mvs_find_dev_mvi > due to this function being able to return a NULL pointer and if > this does arise we will deference it in mvs_alloc_dev due to > this function never checking if a

Re: Question for Patch"libsas: fix "sysfs group not found" warnings at port teardown time"

2016-02-05 Thread Dāvis Mosāns
2016-02-05 11:20 GMT+02:00 wangyijing : > > Hi Dan and Praveen, >I found a patch titled "libsas: fix "sysfs group not found" warnings at > port teardown time" by google, > https://www.mail-archive.com/linux-scsi@vger.kernel.org/msg39187.html > Maybe this is related?

Re: [PATCH] SCSI: mvsas: Fix NULL pointer dereference in mvs_slot_task_free

2015-10-21 Thread Dāvis Mosāns
2015-10-21 16:47 GMT+03:00 Johannes Thumshirn <jthumsh...@suse.de>: > On Wed, 2015-10-21 at 16:18 +0300, Dāvis Mosāns wrote: >> 2015-10-21 10:33 GMT+03:00 Johannes Thumshirn <jthumsh...@suse.de>: >> > On Tue, 2015-10-20 at 20:41 +0300, Dāvis Mosāns wrote: >>

Re: [PATCH] SCSI: mvsas: Fix NULL pointer dereference in mvs_slot_task_free

2015-10-21 Thread Dāvis Mosāns
2015-10-21 10:33 GMT+03:00 Johannes Thumshirn <jthumsh...@suse.de>: > On Tue, 2015-10-20 at 20:41 +0300, Dāvis Mosāns wrote: >> 2015-08-21 7:29 GMT+03:00 Dāvis Mosāns <davis...@gmail.com>: >> > When pci_pool_alloc fails in mvs_task_prep then task->lldd_task >>

Re: [PATCH] SCSI: mvsas: Fix NULL pointer dereference in mvs_slot_task_free

2015-10-20 Thread Dāvis Mosāns
2015-08-21 7:29 GMT+03:00 Dāvis Mosāns <davis...@gmail.com>: > When pci_pool_alloc fails in mvs_task_prep then task->lldd_task stays > NULL but it's later used in mvs_abort_task as slot which is passed > to mvs_slot_task_free causing NULL pointer dereference. &g

Re: [PATCH] SCSI: mvsas: Fix NULL pointer dereference in mvs_slot_task_free

2015-09-01 Thread Dāvis Mosāns
2015-08-21 7:29 GMT+03:00 Dāvis Mosāns <davis...@gmail.com>: > When pci_pool_alloc fails in mvs_task_prep then task->lldd_task stays > NULL but it's later used in mvs_abort_task as slot which is passed > to mvs_slot_task_free causing NULL pointer dereference. &g

[PATCH] SCSI: mvsas: Fix NULL pointer dereference in mvs_slot_task_free

2015-08-20 Thread Dāvis Mosāns
/show_bug.cgi?id=101891 Signed-off-by: Dāvis Mosāns davis...@gmail.com --- drivers/scsi/mvsas/mv_sas.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/scsi/mvsas/mv_sas.c b/drivers/scsi/mvsas/mv_sas.c index 454536c..9c78074 100644 --- a/drivers/scsi/mvsas/mv_sas.c +++ b/drivers/scsi