Re: [PATCH 2/2] loop: handle short DIO reads

2018-04-14 Thread Ming Lei
On Fri, Apr 13, 2018 at 04:30:36PM -0600, Jens Axboe wrote: > We ran into an issue with loop and btrfs, where btrfs would complain about > checksum errors. It turns out that is because we don't handle short reads > at all, we just zero fill the remainder. Worse than that, we don't handle > the fill

Re: [PATCH 1/2] loop: remove cmd->rq member

2018-04-14 Thread Ming Lei
On Fri, Apr 13, 2018 at 04:30:35PM -0600, Jens Axboe wrote: > We can always get at the request from the payload, no need to store > a pointer to it. > > Signed-off-by: Jens Axboe > --- > drivers/block/loop.c | 36 +++- > drivers/block/loop.h | 1 - > 2 files chan

Re: 4.15.14 crash with iscsi target and dvd

2018-04-14 Thread Wakko Warner
Ming Lei wrote: > On Thu, Apr 12, 2018 at 09:43:02PM -0400, Wakko Warner wrote: > > Ming Lei wrote: > > > On Tue, Apr 10, 2018 at 08:45:25PM -0400, Wakko Warner wrote: > > > > Sorry for the delay. I reverted my change, added this one. I didn't > > > > reboot, I just unloaded and loaded this one.

Re: [PATCH v2] block: do not use interruptible wait anywhere

2018-04-14 Thread Jens Axboe
On 4/12/18 12:11 PM, Alan Jenkins wrote: > When blk_queue_enter() waits for a queue to unfreeze, or unset the > PREEMPT_ONLY flag, do not allow it to be interrupted by a signal. > > The PREEMPT_ONLY flag was introduced later in commit 3a0a529971ec > ("block, scsi: Make SCSI quiesce and resume work

Re: blktest for [PATCH v2] block: do not use interruptible wait anywhere

2018-04-14 Thread Jens Axboe
On 4/14/18 1:46 PM, Alan Jenkins wrote: > On 13/04/18 09:31, Johannes Thumshirn wrote: >> Hi Alan, >> >> On Thu, 2018-04-12 at 19:11 +0100, Alan Jenkins wrote: >>> # dd if=/dev/sda of=/dev/null iflag=direct & \ >>>while killall -SIGUSR1 dd; do sleep 0.1; done & \ >>>echo mem > /sys/power/st

Re: blktest for [PATCH v2] block: do not use interruptible wait anywhere

2018-04-14 Thread Alan Jenkins
On 13/04/18 09:31, Johannes Thumshirn wrote: Hi Alan, On Thu, 2018-04-12 at 19:11 +0100, Alan Jenkins wrote: # dd if=/dev/sda of=/dev/null iflag=direct & \ while killall -SIGUSR1 dd; do sleep 0.1; done & \ echo mem > /sys/power/state ; \ sleep 5; killall dd # stop after 5 seconds Can

Re: WARNING: lock held when returning to user space!

2018-04-14 Thread Tetsuo Handa
The patch was sent to linux.git as commit bdac616db9bbadb9. #syz fix: loop: fix LOOP_GET_STATUS lock imbalance

Re: [PATCH V3] blk-mq: fix race between complete and BLK_EH_RESET_TIMER

2018-04-14 Thread Bart Van Assche
On Fri, 2018-04-13 at 21:06 -0600, Jens Axboe wrote: > I like this approach since it keeps the cost outside of the fast > path. And it's fine to reuse the queue lock for this, instead of > adding a special lock for something we consider a rare occurrence. > > From a quick look this looks sane, but