Re: [GIT PULL] nvme fixes for 4.18

2018-07-26 Thread Jens Axboe
On 7/26/18 7:16 AM, Christoph Hellwig wrote: > Two small fixes each for the FC code and the target. > > > The following changes since commit 8f3ea35929a0806ad1397db99a89ffee0140822a: > > nbd: handle unexpected replies better (2018-07-16 10:14:40 -0600) > > are available in the Git repository

Re: [PATCH 0/2] blktests: test ANA base support

2018-07-26 Thread James Smart
make sure this fix has been picked up in your kernel: http://git.infradead.org/nvme.git/commit/6cdefc6e2ad52170f89a8d0e8b1a1339f91834dc deletes were broken otherwise and have the exact trace below. -- james On 7/25/2018 7:01 PM, Chaitanya Kulkarni wrote: Thanks for the report and correction.

Re: [PATCH v5 0/3] Fix silent data corruption in blkdev_direct_IO()

2018-07-26 Thread Jens Axboe
On 7/25/18 2:15 PM, Martin Wilck wrote: > Hello Jens, Ming, Jan, and all others, > > the following patches have been verified by a customer to fix a silent data > corruption which he has been seeing since "72ecad2 block: support a full bio > worth of IO for simplified bdev direct-io". > > The

[PATCH] block: reset bi_iter.bi_done after splitting bio

2018-07-26 Thread Greg Edwards
After the bio has been updated to represent the remaining sectors, reset bi_done so bio_rewind_iter() does not rewind further than it should. This resolves a bio_integrity_process() failure on reads where the original request was split. Fixes: 63573e359d05 ("bio-integrity: Restore original

Re: [PATCH v2 4/5] block, scsi: Rework runtime power management

2018-07-26 Thread jianchao.wang
On 07/27/2018 06:24 AM, Bart Van Assche wrote: > On Thu, 2018-07-26 at 10:45 +0800, jianchao.wang wrote: >> On 07/26/2018 06:26 AM, Bart Van Assche wrote: >>> @@ -102,9 +109,11 @@ int blk_pre_runtime_suspend(struct request_queue *q) >>> return ret; >>> >>>

Re: [PATCH v5 2/3] blkdev: __blkdev_direct_IO_simple: fix leak in error case

2018-07-26 Thread Hannes Reinecke
On 07/25/2018 11:15 PM, Martin Wilck wrote: > Fixes: 72ecad22d9f1 ("block: support a full bio worth of IO for > simplified bdev direct-io") > Reviewed-by: Ming Lei > Signed-off-by: Martin Wilck > --- > fs/block_dev.c | 9 + > 1 file changed, 5 insertions(+), 4 deletions(-) >

Re: [PATCH v2] bcache: set max writeback rate when I/O request is idle

2018-07-26 Thread Coly Li
On 2018/7/26 1:44 PM, Stefan Priebe - Profihost AG wrote: >> Am 25.07.2018 um 08:16 schrieb Stefan Priebe - Profihost AG >> : >> >>> Am 24.07.2018 um 18:36 schrieb Coly Li: On 2018/7/24 4:33 PM, Stefan Priebe - Profihost AG wrote: > Am 24.07.2018 um 10:28 schrieb Coly Li: >> On

Re: [PATCH 0/2] blktests: test ANA base support

2018-07-26 Thread Omar Sandoval
On Thu, Jul 26, 2018 at 09:35:53AM -0700, James Smart wrote: > make sure this fix has been picked up in your kernel: > http://git.infradead.org/nvme.git/commit/6cdefc6e2ad52170f89a8d0e8b1a1339f91834dc > > deletes were broken otherwise and have the exact trace below. > > -- james Thanks, James,

Re: [PATCH v2 4/5] block, scsi: Rework runtime power management

2018-07-26 Thread Bart Van Assche
On Thu, 2018-07-26 at 10:45 +0800, jianchao.wang wrote: > On 07/26/2018 06:26 AM, Bart Van Assche wrote: > > @@ -102,9 +109,11 @@ int blk_pre_runtime_suspend(struct request_queue *q) > > return ret; > > > > blk_pm_runtime_lock(q); > > + blk_set_preempt_only(q); > > We only

Re: [PATCH 0/2] blktests: test ANA base support

2018-07-26 Thread Omar Sandoval
On Thu, Jul 26, 2018 at 02:31:32PM -0700, Omar Sandoval wrote: > On Thu, Jul 26, 2018 at 09:35:53AM -0700, James Smart wrote: > > make sure this fix has been picked up in your kernel: > > http://git.infradead.org/nvme.git/commit/6cdefc6e2ad52170f89a8d0e8b1a1339f91834dc > > > > deletes were broken

[PATCH] readahead: stricter check for bdi io_pages

2018-07-26 Thread stockhausen
ondemand_readahead() checks bdi->io_pages to cap the maximum pages that need to be processed. This works until the readit section. If we would do an async only readahead (async size = sync size) and target is at beginning of window we expand the pages by another get_next_ra_size() pages. Btrace

Re: [PATCH v2 3/5] block: Serialize queue freezing and blk_pre_runtime_suspend()

2018-07-26 Thread Bart Van Assche
On Thu, 2018-07-26 at 10:45 +0800, jianchao.wang wrote: > On 07/26/2018 06:26 AM, Bart Van Assche wrote: > > + > > +void blk_pm_runtime_lock(struct request_queue *q) > > +{ > > + spin_lock(>rpm_lock); > > + wait_event_interruptible_locked(q->rpm_wq, > > + q->rpm_owner ==

Re: [PATCH v5 3/3] block: bio_iov_iter_get_pages: pin more pages for multi-segment IOs

2018-07-26 Thread Christoph Hellwig
Both the changelog and the comments should use up all horizontal space (73 and 80 charcs respectively), but that can be fixed up when applied. Otherwise looks fine: Reviewed-by: Christoph Hellwig

Re: [PATCH v2 4/5] block, scsi: Rework runtime power management

2018-07-26 Thread jianchao.wang
On 07/26/2018 03:52 PM, jianchao.wang wrote: > In addition, .runtime_suspend is invoked under spinlock and irq-disabled. > So sleep is forbidden here. > Please refer to rpm_suspend > > * This function must be called under dev->power.lock with interrupts disabled > __rpm_callback will unlock

Re: [PATCH v5 2/3] blkdev: __blkdev_direct_IO_simple: fix leak in error case

2018-07-26 Thread Christoph Hellwig
On Wed, Jul 25, 2018 at 11:15:08PM +0200, Martin Wilck wrote: > Fixes: 72ecad22d9f1 ("block: support a full bio worth of IO for > simplified bdev direct-io") > Reviewed-by: Ming Lei > Signed-off-by: Martin Wilck I'm pretty sure I already ACKed this last time, but here we go again:

[PATCH v3] bcache: set max writeback rate when I/O request is idle

2018-07-26 Thread Coly Li
Commit b1092c9af9ed ("bcache: allow quick writeback when backing idle") allows the writeback rate to be faster if there is no I/O request on a bcache device. It works well if there is only one bcache device attached to the cache set. If there are many bcache devices attached to a cache set, it may

Re: [PATCH v2 4/5] block, scsi: Rework runtime power management

2018-07-26 Thread jianchao.wang
On 07/26/2018 10:45 AM, jianchao.wang wrote: > Hi Bart > > On 07/26/2018 06:26 AM, Bart Van Assche wrote: >> @@ -102,9 +109,11 @@ int blk_pre_runtime_suspend(struct request_queue *q) >> return ret; >> >> blk_pm_runtime_lock(q); >> +blk_set_preempt_only(q); > > We only

Re: [PATCH for v4.18] blk-mq: Rename BLK_EH_DONE into BLK_EH_DONT_RESET_TIMER

2018-07-26 Thread Johannes Thumshirn
I'm OK with the rename in general but not sure about doing it this late in the cycle. Anyways, Reviewed-by: Johannes Thumshirn -- Johannes Thumshirn Storage jthumsh...@suse.de+49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr.

Re: [PATCH v3] bcache: set max writeback rate when I/O request is idle

2018-07-26 Thread Stefan Priebe - Profihost AG
Am 26.07.2018 um 12:42 schrieb Coly Li: > Commit b1092c9af9ed ("bcache: allow quick writeback when backing idle") > allows the writeback rate to be faster if there is no I/O request on a > bcache device. It works well if there is only one bcache device attached > to the cache set. If there are

Re: [PATCH] blktests: Add '--outdir' to store results in a different directory

2018-07-26 Thread Hannes Reinecke
On 07/25/2018 11:23 PM, Omar Sandoval wrote: > On Tue, Jul 17, 2018 at 03:27:50PM +0200, Hannes Reinecke wrote: >> Adding an option '--outdir' to store results in a different >> director so as not to clutter the git repository itself. >> >> Signed-off-by: Hannes Reinecke >> --- >> check | 14

Re: [PATCH v3] bcache: set max writeback rate when I/O request is idle

2018-07-26 Thread Coly Li
On 2018/7/26 7:49 PM, Stefan Priebe - Profihost AG wrote: > Am 26.07.2018 um 12:42 schrieb Coly Li: >> Commit b1092c9af9ed ("bcache: allow quick writeback when backing idle") >> allows the writeback rate to be faster if there is no I/O request on a >> bcache device. It works well if there is only

[GIT PULL] nvme fixes for 4.18

2018-07-26 Thread Christoph Hellwig
Two small fixes each for the FC code and the target. The following changes since commit 8f3ea35929a0806ad1397db99a89ffee0140822a: nbd: handle unexpected replies better (2018-07-16 10:14:40 -0600) are available in the Git repository at: git://git.infradead.org/nvme.git nvme-4.18 for you

[PATCH 6/9] bcache: fix mistaken comments in bch_keylist_realloc()

2018-07-26 Thread Coly Li
--- drivers/md/bcache/request.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/md/bcache/request.c b/drivers/md/bcache/request.c index 8eece9ef9f46..91206f329971 100644 --- a/drivers/md/bcache/request.c +++ b/drivers/md/bcache/request.c @@ -107,7 +107,7 @@ static int

[PATCH 8/9] bcache: initiate bcache_debug to NULL

2018-07-26 Thread Coly Li
Global variable bcache_debug is firstly initialized in bch_debug_init(), and destroyed in bch_debug_exit(). bch_debug_init() is called in bcache_init() with many other functions, if one of the previous calling onces failed, bcache_exit() will be called in the failure path. The problem is, if

[PATCH 7/9] bcache: add code comments for bset.c

2018-07-26 Thread Coly Li
This patch tries to add code comments in bset.c, to make some tricky code and designment to be more comprehensible. Most information of this patch comes from the discussion between Kent and I, he offers very informative details. If there is any mistake of the idea behind the code, no doubt that's

[PATCH 1/9] bcache: do not check return value of debugfs_create_dir()

2018-07-26 Thread Coly Li
Greg KH suggests that normal code should not care about debugfs. Therefore no matter successful or failed of debugfs_create_dir() execution, it is unncessary to check its return value. There are two functions called debugfs_create_dir() and check the return value, which are bch_debug_init() and

[PATCH 0/9] Pending bcache patches for review

2018-07-26 Thread Coly Li
Hi folks, I ask for help to review these patches, some of them are posted for months. They are OK with my test for a while, still tt would be great to have more reviewer before these patches go into v4.19. Thanks in advance. Coly Li --- Coly Li (9): bcache: do not check return value of

[PATCH 4/9] bcache: add a comment in register_bdev()

2018-07-26 Thread Coly Li
--- drivers/md/bcache/super.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache/super.c index c7ffa6ef3f82..f517d7d1fa10 100644 --- a/drivers/md/bcache/super.c +++ b/drivers/md/bcache/super.c @@ -1291,6 +1291,7 @@ static void register_bdev(struct

[PATCH 2/9] bcache: display rate debug parameters to 0 when writeback is not running

2018-07-26 Thread Coly Li
When writeback is not running, writeback rate should be 0, other value is misleading. And the following dyanmic writeback rate debug parameters should be 0 too, rate, proportional, integral, change otherwise they are misleading when writeback is not running. Signed-off-by: Coly Li ---

[PATCH 9/9] bcache: set max writeback rate when I/O request is idle

2018-07-26 Thread Coly Li
Commit b1092c9af9ed ("bcache: allow quick writeback when backing idle") allows the writeback rate to be faster if there is no I/O request on a bcache device. It works well if there is only one bcache device attached to the cache set. If there are many bcache devices attached to a cache set, it may

[PATCH 5/9] bcache: fix mistaken code comments in struct cache

2018-07-26 Thread Coly Li
--- drivers/md/bcache/bcache.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/md/bcache/bcache.h b/drivers/md/bcache/bcache.h index a44bd427e5ba..5f7082aab1b0 100644 --- a/drivers/md/bcache/bcache.h +++ b/drivers/md/bcache/bcache.h @@ -423,8 +423,8 @@ struct cache

[PATCH 3/9] bcache: avoid unncessary cache prefetch bch_btree_node_get()

2018-07-26 Thread Coly Li
In bch_btree_node_get() the read-in btree node will be partially prefetched into L1 cache for following bset iteration (if there is). But if the btree node read is failed, the perfetch operations will waste L1 cache space. This patch checkes whether read operation and only does cache prefetch when