Re: 答复: Re: [PATCH] scsi: Replace sdev_printk with printk_deferred to avoid

2018-03-27 Thread Sergey Senozhatsky
On (03/28/18 10:29), wen.yan...@zte.com.cn wrote: >Hello Bart, > >We have a detailed discussion of the problem. >Sergey Senozhatsky, Petr and many people have made a lot of efforts about >it. >Please see this link: >https://bugzilla.kernel.org/show_bug.cgi?id=199003 > >

Re: 答复: Re: [PATCH] scsi: Replace sdev_printk with printk_deferred to avoid

2018-03-27 Thread Sergey Senozhatsky
On (03/28/18 10:29), wen.yan...@zte.com.cn wrote: >Hello Bart, > >We have a detailed discussion of the problem. >Sergey Senozhatsky, Petr and many people have made a lot of efforts about >it. >Please see this link: >https://bugzilla.kernel.org/show_bug.cgi?id=199003 > >

Re: [PATCH] scsi: Replace sdev_printk with printk_deferred to avoid

2018-03-27 Thread Bart Van Assche
On Thu, 2018-03-08 at 16:50 +0800, Wen Yang wrote: > When scsi disks went wrong frequently, and with serial console > attached, tasks may be blocked in the following flow for more than 10s: [ ... > ] From https://bugzilla.kernel.org/show_bug.cgi?id=199003: "Hm, printk_deferred is a bit

Re: [PATCH] scsi: Replace sdev_printk with printk_deferred to avoid

2018-03-27 Thread Bart Van Assche
On Thu, 2018-03-08 at 16:50 +0800, Wen Yang wrote: > When scsi disks went wrong frequently, and with serial console > attached, tasks may be blocked in the following flow for more than 10s: [ ... > ] From https://bugzilla.kernel.org/show_bug.cgi?id=199003: "Hm, printk_deferred is a bit

Re: [PATCH] scsi: Replace sdev_printk with printk_deferred to avoid

2018-03-26 Thread Bart Van Assche
On Thu, 2018-03-08 at 16:50 +0800, Wen Yang wrote: > This patch replacing the sdev_printk with async printk_deferred can > avoid task blocking because of the slow serial and unstable disks in > such senario. Although I'm not enthusiast about this approach, I haven't been able to come up with a

Re: [PATCH] scsi: Replace sdev_printk with printk_deferred to avoid

2018-03-26 Thread Bart Van Assche
On Thu, 2018-03-08 at 16:50 +0800, Wen Yang wrote: > This patch replacing the sdev_printk with async printk_deferred can > avoid task blocking because of the slow serial and unstable disks in > such senario. Although I'm not enthusiast about this approach, I haven't been able to come up with a

[PATCH] scsi: Replace sdev_printk with printk_deferred to avoid

2018-03-08 Thread Wen Yang
When scsi disks went wrong frequently, and with serial console attached, tasks may be blocked in the following flow for more than 10s: [ 557.369580] <> [] blkcg_print_blkgs+0x76/0xf0 》 wait for blkg->q->queue_lock [ 557.369581] [] cfqg_print_rwstat_recursive+0x36/0x40 [ 557.369583]

[PATCH] scsi: Replace sdev_printk with printk_deferred to avoid

2018-03-08 Thread Wen Yang
When scsi disks went wrong frequently, and with serial console attached, tasks may be blocked in the following flow for more than 10s: [ 557.369580] <> [] blkcg_print_blkgs+0x76/0xf0 》 wait for blkg->q->queue_lock [ 557.369581] [] cfqg_print_rwstat_recursive+0x36/0x40 [ 557.369583]