Re: [PATCH 04/26] qedf: Simplify s/g list mapping.

2019-03-21 Thread Saurav Kashyap
Hi Martin, I will provide an update patch list soon. Thanks, ~Saurav -Original Message- From: "Martin K. Petersen" Organization: Oracle Corporation Date: Tuesday, 19 March 2019 at 5:32 AM To: Saurav Kashyap , Chad Dupuis Cc: "kbuild-...@01.org" , "martin.peter...@oracle.com" , "qlogic

Re: [PATCH v4] blk-mq: fix a hung issue when set device state to blocked and restore running

2019-03-21 Thread Ming Lei
On Thu, Mar 21, 2019 at 08:17:44PM -0700, Bart Van Assche wrote: > On 3/21/19 7:11 PM, Ming Lei wrote: > > On Fri, Mar 22, 2019 at 09:45:54AM +0800, zhengbin wrote: > > > + /* If device state changes to SDEV_RUNNING, we need to run hw queue > > > + * to avoid io hung. > > > + */ > > > + if (ret =

Re: [PATCH v4] blk-mq: fix a hung issue when set device state to blocked and restore running

2019-03-21 Thread Bart Van Assche
On 3/21/19 7:11 PM, Ming Lei wrote: On Fri, Mar 22, 2019 at 09:45:54AM +0800, zhengbin wrote: + /* If device state changes to SDEV_RUNNING, we need to run hw queue +* to avoid io hung. +*/ + if (ret == 0 && state == SDEV_RUNNING) + blk_mq_run_hw_queues(s

Re: [PATCH v2] blk-mq: fix a hung issue when set device state to blocked and restore running

2019-03-21 Thread kbuild test robot
Hi zhengbin, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on mkp-scsi/for-next] [also build test WARNING on v5.1-rc1 next-20190321] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com

Re: [PATCH v5] blk-mq: fix a hung issue when set device state to blocked and restore running

2019-03-21 Thread Ming Lei
On Fri, Mar 22, 2019 at 10:56:46AM +0800, zhengbin wrote: > When I use dd test a SCSI device which use blk-mq in the following steps: > 1.echo "blocked" >/sys/block/sda/device/state > 2.dd if=/dev/sda of=/mnt/t.log bs=1M count=10 > 3.echo "running" >/sys/block/sda/device/state > dd should finish th

[PATCH v5] blk-mq: fix a hung issue when set device state to blocked and restore running

2019-03-21 Thread zhengbin
When I use dd test a SCSI device which use blk-mq in the following steps: 1.echo "blocked" >/sys/block/sda/device/state 2.dd if=/dev/sda of=/mnt/t.log bs=1M count=10 3.echo "running" >/sys/block/sda/device/state dd should finish this work after step 3, unfortunately, still hung. After step2, the k

Re: [PATCH v4] blk-mq: fix a hung issue when set device state to blocked and restore running

2019-03-21 Thread Ming Lei
On Fri, Mar 22, 2019 at 10:18:54AM +0800, zhengbin (A) wrote: > So blk_mq_run_hw_queues should still be in mutex_lock(&sdev->state_mutex)?? I think so, this way should be safe given the pattern is used in __scsi_remove_device() already. BTW, please do not reply before the quoted text, and I'd sug

Re: [PATCH v4] blk-mq: fix a hung issue when set device state to blocked and restore running

2019-03-21 Thread zhengbin (A)
So blk_mq_run_hw_queues should still be in mutex_lock(&sdev->state_mutex)?? On 2019/3/22 10:11, Ming Lei wrote: > On Fri, Mar 22, 2019 at 09:45:54AM +0800, zhengbin wrote: >> When I use dd test a SCSI device which use blk-mq in the following steps: >> 1.echo "blocked" >/sys/block/sda/device/state

Re: [PATCH v4] blk-mq: fix a hung issue when set device state to blocked and restore running

2019-03-21 Thread Ming Lei
On Fri, Mar 22, 2019 at 09:45:54AM +0800, zhengbin wrote: > When I use dd test a SCSI device which use blk-mq in the following steps: > 1.echo "blocked" >/sys/block/sda/device/state > 2.dd if=/dev/sda of=/mnt/t.log bs=1M count=10 > 3.echo "running" >/sys/block/sda/device/state > dd should finish th

Re: [PATCH 1/2] ch: add missing mutex_lock()/mutex_unlock() in ch_release()

2019-03-21 Thread Douglas Gilbert
On 2019-03-21 7:33 p.m., Bart Van Assche wrote: On Thu, 2019-03-21 at 19:11 -0400, Douglas Gilbert wrote: That doesn't sound right. If it was correct then sg_open() and sg_release() have mutex overkill (and I don't think that is caused by the complexity of adding O_EXCL which is damn hard to imp

[PATCH v4] blk-mq: fix a hung issue when set device state to blocked and restore running

2019-03-21 Thread zhengbin
When I use dd test a SCSI device which use blk-mq in the following steps: 1.echo "blocked" >/sys/block/sda/device/state 2.dd if=/dev/sda of=/mnt/t.log bs=1M count=10 3.echo "running" >/sys/block/sda/device/state dd should finish this work after step 3, unfortunately, still hung. After step2, the k

PRIVATE...

2019-03-21 Thread daniele
I have a business Proposal that will be of benefit to the both of us.Kindly contact me on mrmichealwu...@yahoo.com.hk should this be of interest to you.

Re: [PATCH 1/2] ch: add missing mutex_lock()/mutex_unlock() in ch_release()

2019-03-21 Thread Bart Van Assche
On Thu, 2019-03-21 at 19:11 -0400, Douglas Gilbert wrote: > That doesn't sound right. If it was correct then sg_open() and sg_release() > have mutex overkill (and I don't think that is caused by the complexity of > adding O_EXCL which is damn hard to implement correctly). > > Example with existing

Re: [PATCH 1/2] ch: add missing mutex_lock()/mutex_unlock() in ch_release()

2019-03-21 Thread Douglas Gilbert
On 2019-03-21 7:11 p.m., Douglas Gilbert wrote: On 2019-03-21 5:36 p.m., Bart Van Assche wrote: On Wed, 2019-03-20 at 12:39 +0100, Hannes Reinecke wrote: The 'ch_mutex" is meant to guard against modifications of file->private_data, so we need to take in in ch_release() as well as in ch_open().

Re: [PATCH 1/2] ch: add missing mutex_lock()/mutex_unlock() in ch_release()

2019-03-21 Thread Douglas Gilbert
On 2019-03-21 5:36 p.m., Bart Van Assche wrote: On Wed, 2019-03-20 at 12:39 +0100, Hannes Reinecke wrote: The 'ch_mutex" is meant to guard against modifications of file->private_data, so we need to take in in ch_release() as well as in ch_open(). Signed-off-by: Hannes Reinecke --- drivers/sc

Re: [PATCH 2/2] sd: Inline sd_probe_part2()

2019-03-21 Thread Bart Van Assche
On Wed, 2019-03-20 at 20:35 -0400, Martin K. Petersen wrote: > Bart, > > > You are right of course. The reason I would like to inline that > > function is because it was essential in the past to have that code as > > a separate function but after patch 1/2 inlining that function makes > > sd_probe

Re: [PATCH 1/2] ch: add missing mutex_lock()/mutex_unlock() in ch_release()

2019-03-21 Thread Bart Van Assche
On Wed, 2019-03-20 at 12:39 +0100, Hannes Reinecke wrote: > The 'ch_mutex" is meant to guard against modifications of > file->private_data, so we need to take in in ch_release() as > well as in ch_open(). > > Signed-off-by: Hannes Reinecke > --- > drivers/scsi/ch.c | 2 ﭗ橸ṷ梧뇪觬() > > diff --gi

[PATCH] sd: TEST_UNIT_READY 3-times - "media_not_present"

2019-03-21 Thread Samo Pogačnik
If the drive has indicated to us that it doesn't have any media in it, don't bother after the third poll indicating "media_not_present". Previously we gave up immediately after the first indication, however two retries were still available for orther cases. This change solved a problem of mounting

RE: [PATCH] mpt3sas: Fix kernel panic occurs during expander reset

2019-03-21 Thread Kashyap Desai
> > > > >>> Hannes & Christoph: Please comment on Sreekanth's proposed > approach. > > > > >> > > > > >> Iterating over all tags from the driver is always wrong. We've > > > > >> been though this a few times. > > > > > > > > > > Current issue is very easy to be reproduced and it is widely > > > >

Re: [PATCH v3] blk-mq: fix a hung issue when set device state to blocked and restore running

2019-03-21 Thread Bart Van Assche
On Thu, 2019-03-21 at 13:43 +0800, zhengbin wrote: > diff --git a/drivers/scsi/scsi_sysfs.c b/drivers/scsi/scsi_sysfs.c > index 6a9040f..342e513 100644 > --- a/drivers/scsi/scsi_sysfs.c > +++ b/drivers/scsi/scsi_sysfs.c > @@ -771,9 +771,20 @@ store_state_field(struct device *dev, struct > device_a

[PATCH] scsi: lpfc: change snprintf to scnprintf for possible overflow

2019-03-21 Thread James Smart
From: Willy Tarreau From: Silvio Cesare Change snprintf to scnprintf. There are generally two cases where using snprintf causes problems. 1) Uses of size += snprintf(buf, SIZE - size, fmt, ...) In this case, if snprintf would have written more characters than what the buffer size (SIZE) is, the

Re: [PATCH v2] blk-mq: fix a hung issue when set device state to blocked and restore running

2019-03-21 Thread Bart Van Assche
On Thu, 2019-03-21 at 12:20 +0800, jianchao.wang wrote: > Do you think we should provide more guarantee when setting sdev state through > sysfs ? > > In the current implementation, store_state_field does nothing but just modify > state. > > For example, when we set state to 'blocked', it cannot

Re: [PATCH v2] blk-mq: fix a hung issue when set device state to blocked and restore running

2019-03-21 Thread Bart Van Assche
On 3/20/19 8:55 PM, Ming Lei wrote: I suggest to move blk_mq_run_hw_queues() out of the mutex for avoiding any potential trouble. Which trouble? I don't think any trouble can arise from holding a mutex around a request to run a request queue asynchronously. Bart.

Re: Panic when rebooting target server testing srp on 5.0.0-rc2

2019-03-21 Thread Laurence Oberman
On Wed, 2019-03-20 at 16:35 -0400, Laurence Oberman wrote: > On Wed, 2019-03-20 at 13:28 -0700, Bart Van Assche wrote: > > On Wed, 2019-03-20 at 11:11 -0400, Laurence Oberman wrote: > > > On Wed, 2019-03-20 at 09:45 -0400, Laurence Oberman wrote: > > > > Hello Bart, I hope all is well with you. > >

Issues with a SuperMicro system with LSI SAS controller (mpt3sas)

2019-03-21 Thread Freaky
Hi, we have 4 qemu hosts with identical hardware in a cluster which were running fine for a year or so. Recently one host started exhibiting issues with the disks going offline. If it happens all 10 disks attached to the controller go offline. Managed to capture some logs, they're a bit lower. Ac

MASSAGE FROM Ms Safi>> Reply

2019-03-21 Thread Ms Safi Kabore
Dear Friend, I am Ms Safi Kabore work with the department of Audit and accounting manager here in the Bank, There is this fund that was keep in my custody years ago,please i need your assistance for the transferring of thIs fund to your bank account for both of us benefit for life time inv

Re: [PATCH v3] blk-mq: fix a hung issue when set device state to blocked and restore running

2019-03-21 Thread Ming Lei
On Thu, Mar 21, 2019 at 01:43:09PM +0800, zhengbin wrote: > When I use dd test a SCSI device which use blk-mq in the following steps: > 1.echo "blocked" >/sys/block/sda/device/state > 2.dd if=/dev/sda of=/mnt/t.log bs=1M count=10 > 3.echo "running" >/sys/block/sda/device/state > dd should finish th