Re: [PATCH v2 2/5] dax: clear TOWRITE flag after flush is complete

2016-01-22 Thread Jan Kara
t; > In this case thread 1 returns before the data for the dirty entry is > actually durable on media. > > Fix this by only clearing the PAGECACHE_TAG_TOWRITE flag after all flushing > is complete. > > Signed-off-by: Ross Zwisler <ross.zwis...@linux.intel.com> > Repo

Re: [PATCH v2 3/5] dax: improve documentation for fsync/msync

2016-01-22 Thread Jan Kara
On Thu 21-01-16 10:46:02, Ross Zwisler wrote: > Several of the subtleties and assumptions of the DAX fsync/msync > implementation are not immediately obvious, so document them with comments. > > Signed-off-by: Ross Zwisler <ross.zwis...@linux.intel.com> > Reported-by: J

Re: [PATCH v2 4/5] dax: fix PMD handling for fsync/msync

2016-01-22 Thread Jan Kara
e same time and don't flush entries that are beyond end_index. > > Signed-off-by: Ross Zwisler <ross.zwis...@linux.intel.com> Just one nit below. You can add: Reviewed-by: Jan Kara <j...@suse.cz> > --- > fs/dax.c | 39 +++ > 1 file chan

Re: [PATCH v2 1/5] dax: never rely on bh.b_dev being set by get_block()

2016-01-22 Thread Jan Kara
get something helpful from > bh.b_bdev for error messages and not have to worry about whether it was set > by get_block() or not. > > Signed-off-by: Ross Zwisler <ross.zwis...@linux.intel.com> > Reported-by: Jan Kara <j...@suse.cz> Looks g

Re: [PATCH v2 5/5] dax: fix clearing of holes in __dax_pmd_fault()

2016-01-22 Thread Jan Kara
on > non-allocating page faults. > > Instead, keep track of when get_block() actually gives us storage so that > we can be sure to only remove zero pages that were covering holes. > > Signed-off-by: Ross Zwisler <ross.zwis...@linux.intel.com> > Reported-by: Jan Kara <j

Re: [PATCH 2/2] fsnotify: turn fsnotify reaper thread into a workqueue job

2016-02-17 Thread Jan Kara
ing removed, we delay the reaper job slightly when > queueing it, to allow several to gather on the list. > > Cc: Jan Kara <j...@suse.com> > Cc: Eric Paris <epa...@parisplace.org> > Cc: Andrew Morton <a...@linux-foundation.org> > Cc: Eryu Guan <guan

Re: [Lsf-pc] [LSF/MM TOPIC] multi-stream IO hint implementation proposal for LSF/MM 2016

2016-02-17 Thread Jan Kara
hout this information I don't think the discussion would be very useful. So can you provide some rough numbers? Honza -- Jan Kara <j...@suse.com> SUSE Labs, CR

Re: [PATCH block/for-4.5-fixes] writeback: keep superblock pinned during cgroup writeback association switches

2016-02-17 Thread Jan Kara
; + inode_to_wb(inode) == isw->new_wb) > + goto out_unlock; > + > + if (!atomic_inc_not_zero(>i_sb->s_active)) > + goto out_unlock; > + > inode->i_state |= I_WB_SWITCH; > spin_unlock(>i_lock); > > @@ -489,6 +494,8 @@ static void inode_switch_wbs(struct inode *inode, int > new_wb_id) > call_rcu(>rcu_head, inode_switch_wbs_rcu_fn); > return; > > +out_unlock: > + spin_unlock(>i_lock); > out_free: > if (isw->new_wb) > wb_put(isw->new_wb); > -- > 2.5.0 > > -- Jan Kara <j...@suse.com> SUSE Labs, CR

Re: [PATCH v3 2/6] ext2, ext4: only set S_DAX for regular inodes

2016-02-17 Thread Jan Kara
This allows us to have strict DAX vs non-DAX paths in the writeback code. > > Signed-off-by: Ross Zwisler <ross.zwis...@linux.intel.com> Looks good. You can add: Reviewed-by: Jan Kara <j...@suse.cz> Honza > --- > fs/ext

Re: [PATCH v3 3/6] ext4: Online defrag not supported with DAX

2016-02-17 Thread Jan Kara
lt in data corruption. This was observed with xfstests ext4/307 and > ext4/308. > > Fix this by only allowing online defrag for non-DAX files. > > Signed-off-by: Ross Zwisler <ross.zwis...@linux.intel.com> We need to handle this eventually but for now we are fine. You can

Re: [PATCH v3 4/6] dax: give DAX clearing code correct bdev

2016-02-17 Thread Jan Kara
and raw block device code to pass in an appropriate struct block_device. > > Signed-off-by: Ross Zwisler <ross.zwis...@linux.intel.com> > Suggested-by: Dan Williams <dan.j.willi...@intel.com> The patch looks good to me. You can add: Reviewed-by: Jan Kara <j...@suse.cz>

Re: [PATCH v3 6/6] block: use dax_do_io() if blkdev_dax_capable()

2016-02-17 Thread Jan Kara
ses so using DAX regresses some functionality. Honza > Cc: Jan Kara <j...@suse.cz> > Cc: Jens Axboe <ax...@fb.com> > Cc: Al Viro <v...@ftp.linux.org.uk> > Cc: Dave Chinner <da...@fromorbit.com> > Cc: Ross Zwisler <ross.zwis...@linux.int

Re: [PATCH v3 1/6] block: disable block device DAX by default

2016-02-17 Thread Jan Kara
] mount_bdev+0x180/0x1b0 > [] ? ext4_calculate_overhead+0x370/0x370 > [] ext4_mount+0x15/0x20 > [] mount_fs+0x38/0x170 > > Mark the support broken so its disabled by default, but otherwise still > available for testing. > > Cc: Jan Kara <j...@suse.cz> > Cc: Jens Axboe

Re: [PATCH v3 3/6] ext4: Online defrag not supported with DAX

2016-02-17 Thread Jan Kara
(IS_DAX(inode)) { > > + ext4_msg(sb, KERN_ERR, > > +"Online defrag not supported with DAX"); > > + err = -EOPNOTSUPP; > > + goto mext_out; > > } > > > > err = mnt_want_write_file(filp); > > -- > > 2.5.0 > > -- Jan Kara <j...@suse.com> SUSE Labs, CR

Re: [PATCH block/for-4.5-fixes] writeback: keep superblock pinned during cgroup writeback association switches

2016-02-17 Thread Jan Kara
On Wed 17-02-16 16:07:44, Tejun Heo wrote: > Hello, Jan. > > On Wed, Feb 17, 2016 at 09:57:21PM +0100, Jan Kara wrote: > > Well, but this has the side-effect that trying to umount a filesystem while > > migrations are happening will result in EBUSY error. Without o

Re: [PATCH block/for-4.5-fixes] writeback: keep superblock pinned during cgroup writeback association switches

2016-02-18 Thread Jan Kara
es, we need a reference for each mountpoint. s_umount is used when we want to block any umount operation until we are done. For example sync(2) is using it to make sure superblock doesn't disappear and so that we don't keep superblock alive after admin called umount(2).

Re: [Lsf-pc] [LSF/MM TOPIC] multi-stream IO hint implementation proposal for LSF/MM 2016

2016-02-18 Thread Jan Kara
On Wed 17-02-16 21:51:56, Shaun Tancheff wrote: > On Wed, Feb 17, 2016 at 5:36 PM, Dave Chinner <da...@fromorbit.com> wrote: > > On Wed, Feb 17, 2016 at 04:21:55PM +0100, Jan Kara wrote: > > On Sat 13-02-16 01:50:09, Changho Choi-SSI wrote: > &g

Re: [PATCH block/for-4.5-fixes] writeback: keep superblock pinned during cgroup writeback association switches

2016-02-18 Thread Jan Kara
Hi Tejun, On Thu 18-02-16 08:00:33, Tejun Heo wrote: > On Thu, Feb 18, 2016 at 10:55:38AM +0100, Jan Kara wrote: > > I'm not sure I understand the question. Do you mean why both s_active and > > s_umount rwsem exist? s_active is a reference count keeping superblock > > Ye

Re: [PATCH v2 block/for-linus] writeback: flush inode cgroup wb switches instead of pinning super_block

2016-03-01 Thread Jan Kara
off-by: Tejun Heo <t...@kernel.org> > Reported-by: Tahsin Erdogan <tah...@google.com> > Cc: Jan Kara <j...@suse.cz> > Cc: Al Viro <v...@zeniv.linux.org.uk> > Link: > http://lkml.kernel.org/g/caaeu0ancq7lgodvvgru-ou_o-6enii5ey0p1c26d1zzywkd...@mail.gmail.com > Fix

Re: linux-next: manual merge of the xfs tree with the ext4 tree

2016-03-10 Thread Jan Kara
tree and commit: > > 74c66bcb7eda ("ext4: Fix data exposure after failed AIO DIO") > > from the xfs tree. > > I fixed it up (see below) and can carry the fix as necessary (no action > is required). Thanks. The merge looks correct.

Re: linux-next: manual merge of the xfs tree with the ext4 tree

2016-03-10 Thread Jan Kara
tree and commit: > > 74c66bcb7eda ("ext4: Fix data exposure after failed AIO DIO") > > from the xfs tree. > > I fixed it up (see below) and can carry the fix as necessary (no action > is required). Thanks! This merge looks correct as well.

Re: [RFC][PATCH v2 1/2] printk: Make printk() completely async

2016-03-10 Thread Jan Kara
On Wed 09-03-16 15:09:50, Sergey Senozhatsky wrote: > Hello Jan, > > On (03/07/16 13:16), Jan Kara wrote: > [..] > > > So if this will be a problem in practice, using a kthread will probably be > > > the easiest solution. > > > > Hum, and thinking more

Re: [PATCH] block: protect iterate_bdevs() against concurrent close

2016-03-10 Thread Jan Kara
e'd need to make inode_to_bdi() result stable while we work with the block device inode. Christoph, do you have any idea how to cleanly achieve that? All I'm able to come up with are ugly hacks... Honza -- Jan Kara <j...@suse.com> SUSE Labs, CR

Re: [RFC][PATCH v3 1/2] printk: Make printk() completely async

2016-03-14 Thread Jan Kara
); > + irq_work_queue(this_cpu_ptr(_up_klogd_work)); You cannot call wake_up() from a scheduler context - i.e., if in_sched is true, you have to use irq work unconditionally. You can wake up kthread from irq work or just directly print the message there. Otherwise the patch loo

Re: Freezable workqueue blocks non-freezable workqueue during the system resume process

2016-03-14 Thread Jan Kara
On Fri 11-03-16 12:56:10, Tejun Heo wrote: > Hello, Jan. > > On Thu, Mar 03, 2016 at 10:33:10AM +0100, Jan Kara wrote: > > > Ugh... that's nasty. I wonder whether the right thing to do is making > > > writeback workers non-freezable. IOs are supposed to be blocked fr

Re: Freezable workqueue blocks non-freezable workqueue during the system resume process

2016-03-15 Thread Jan Kara
On Mon 14-03-16 10:37:22, Alan Stern wrote: > On Mon, 14 Mar 2016, Jan Kara wrote: > > > On Fri 11-03-16 12:56:10, Tejun Heo wrote: > > > Hello, Jan. > > > > > > On Thu, Mar 03, 2016 at 10:33:10AM +0100, Jan Kara wrote: > > > > > Ugh...

Re: [RFC][PATCH v4 1/2] printk: Make printk() completely async

2016-03-15 Thread Jan Kara
if (console_trylock()) console_unlock(); } } ... Honza -- Jan Kara <j...@suse.com> SUSE Labs, CR

Re: [PATCH] block: protect iterate_bdevs() against concurrent close

2016-03-15 Thread Jan Kara
On Mon 14-03-16 18:42:58, Rabin Vincent wrote: > (fixed Jens' address) > > On Thu, Mar 10, 2016 at 06:37:27PM +0100, Jan Kara wrote: > > On Thu 10-03-16 13:26:03, Rabin Vincent wrote: > > > If a block device is closed while iterate_bdevs() is handling it, the >

Re: block allocator issue with ext4+DAX

2016-03-31 Thread Jan Kara
d, can you please pick it up? Thanks! Honza -- Jan Kara <j...@suse.com> SUSE Labs, CR

Re: [PATCH v10 1/2] printk: Make printk() completely async

2016-04-07 Thread Jan Kara
On Thu 07-04-16 21:08:26, Sergey Senozhatsky wrote: > Hello, > > On (04/07/16 18:48), Sergey Senozhatsky wrote: > > On (04/06/16 10:27), Jan Kara wrote: > > [..] > > > > Well, it's good that we have this. > > > > > > > > It would

Re: [PATCH v10 1/2] printk: Make printk() completely async

2016-04-06 Thread Jan Kara
On Mon 04-04-16 15:51:49, Andrew Morton wrote: > On Tue, 5 Apr 2016 01:57:27 +0900 Sergey Senozhatsky > <sergey.senozhat...@gmail.com> wrote: > > > From: Jan Kara <j...@suse.cz> > > > > Currently, printk() sometimes waits for message to be printed to cons

Re: [PATCH 4/9] writeback: track if we're sleeping on progress in balance_dirty_pages()

2016-04-13 Thread Jan Kara
+ wb->dirty_sleeping = 1; > io_schedule_timeout(pause); > + wb->dirty_sleeping = 0; Huh, but wb->dirty_sleeping is shared by all the processes in the system. So this is seriously racy, isn't it? You rather need a counter for this to work.

Re: [PATCH 43/71] jbd2: get rid of PAGE_CACHE_* and page_cache_{get,release} macros

2016-03-21 Thread Jan Kara
gt; - PAGE_CACHE_{SIZE,SHIFT,MASK,ALIGN} -> PAGE_{SIZE,SHIFT,MASK,ALIGN}; > > - page_cache_get() -> get_page(); > > - page_cache_release() -> put_page(); > > Signed-off-by: Kirill A. Shutemov <kirill.shute...@linux.intel.com>

Re: [PATCH 62/71] udf: get rid of PAGE_CACHE_* and page_cache_{get,release} macros

2016-03-21 Thread Jan Kara
gt; - PAGE_CACHE_{SIZE,SHIFT,MASK,ALIGN} -> PAGE_{SIZE,SHIFT,MASK,ALIGN}; > > - page_cache_get() -> get_page(); > > - page_cache_release() -> put_page(); > > Signed-off-by: Kirill A. Shutemov <kirill.shute...@linux.intel.com> > Cc: Jan Kara <j...@suse.com> R

Re: [PATCH 32/71] ext2: get rid of PAGE_CACHE_* and page_cache_{get,release} macros

2016-03-21 Thread Jan Kara
gt; - PAGE_CACHE_{SIZE,SHIFT,MASK,ALIGN} -> PAGE_{SIZE,SHIFT,MASK,ALIGN}; > > - page_cache_get() -> get_page(); > > - page_cache_release() -> put_page(); > > Signed-off-by: Kirill A. Shutemov <kirill.shute...@linux.intel.com> > Cc: Jan Kara <j...@suse.com>

Re: [GIT PULL] xfs: updates for 4.6-rc1

2016-03-21 Thread Jan Kara
et %llu, size %zd\n", > - iocb->private, io_end->inode->i_ino, iocb, offset, > - size); > + io_end, io_end->inode->i_ino, iocb, offset, size); > > + iocb->private = NULL; The line above should not exist in the result.

Re: [PATCH] jbd2: remove excess descriptions for handle_s

2016-03-21 Thread Jan Kara
t; Signed-off-by: Luis de Bethencourt <lui...@osg.samsung.com> Looks good. You can add: Reviewed-by: Jan Kara <j...@suse.cz> Honza > --- > Hi, > > Noticed this issue when running make htmldocs. > > It gives

Re: [RFC][PATCH v6 0/2] printk: Make printk() completely async

2016-03-22 Thread Jan Kara
ink you need to mention the console_unlock() async patch when it is not part of the series. BTW, you seemed to have dropped my patch to skip if there are too many buffered messages when oops is in progress. Any reason for that? Honza -- Jan Kara <j...@suse.com> SUSE Labs, CR

Re: [RFC][PATCH v6 0/2] printk: Make printk() completely async

2016-03-22 Thread Jan Kara
ly need more clever logic in detecting when to skip. Let's drop it for now and revisit it later if it is an issue. Thanks for explanation. Honza -- Jan Kara <j...@suse.com> SUSE Labs, CR

Re: [PATCH] mm/filemap: generic_file_read_iter(): check for zero reads unconditionally

2016-03-24 Thread Jan Kara
. > > According to POSIX, zero length reads "do not modify the last data access > timestamp" and thus, the IOCB_DIRECT behaviour is POSIXly correct. > > Let generic_file_read_iter() unconditionally check the requested read > length at its entry and return immediate

Re: [PATCH v6 1/4] lib/percpu-list: Per-cpu list with associated per-cpu locks

2016-03-21 Thread Jan Kara
struct pcpu_list_node, list); > + return true; Waiman, I repeat it for the third time as you keep ignoring it: This is *racy*. The list for state->cpu can be empty by the time you acquire state->lock and thus state->curr will point somewhere around the head of the list but def

Re: [RFC][PATCH v5 1/2] printk: Make printk() completely async

2016-03-21 Thread Jan Kara
on issues for printk_deferred() messages which are supposed to be working from under rq->lock and similar. So I think you have to keep this section outside of logbuf_lock. Honza -- Jan Kara <j...@suse.com> SUSE Labs, CR

Re: [RFC][PATCH v5 1/2] printk: Make printk() completely async

2016-03-21 Thread Jan Kara
On Mon 21-03-16 23:58:32, Sergey Senozhatsky wrote: > Hello Jan, > > On (03/21/16 15:32), Jan Kara wrote: > [..] > > > we have 2 spin locks in vprintk_emit() -- logbuf_lock and sem->lock. and N > > > CPUs can concurrently lockup on those two locks, which al

[GIT PULL] UDF and quota changes for 4.6-rc1

2016-03-21 Thread Jan Kara
uota: Fixup comments about return value of Q_[X]GETNEXTQUOTA ext4: Make Q_GETNEXTQUOTA work for quota in hidden inodes Jan Kara (8): Merge branch 'xfs-get-next-dquot-4.6' of git://git.kernel.org/.../dgc/linux-xfs into for_next quota: Allow Q_GETQUOTA for frozen filesystem udf:

Re: [RFC][PATCH v6 1/2] printk: Make printk() completely async

2016-03-23 Thread Jan Kara
d from panic_cpu can go via async printk. > > I though that it actually could be an advantage. console_verbore() is > called also by oops_begin() and it does not need to be fatal. But you > are right that it does not need to be the righ approach. If we oops, I want printk to be sync regardl

Re: [RFC][PATCH v6 1/2] printk: Make printk() completely async

2016-03-23 Thread Jan Kara
On Wed 23-03-16 23:30:20, Sergey Senozhatsky wrote: > Hello, > > On (03/23/16 14:20), Jan Kara wrote: > [..] > > > I though that it actually could be an advantage. console_verbore() is > > > called also by oops_begin() and it does not need to be fatal. But yo

Re: [RFC][PATCH v2 1/2] printk: Make printk() completely async

2016-03-07 Thread Jan Kara
On Mon 07-03-16 11:52:48, Jan Kara wrote: > On Mon 07-03-16 19:12:33, Sergey Senozhatsky wrote: > > Hello, > > > > On (03/07/16 09:22), Jan Kara wrote: > > [..] > > > > hm, just for note, none of system-wide wqs seem to have a ->rescu

Re: [RFC][PATCH v2 1/2] printk: Make printk() completely async

2016-03-07 Thread Jan Kara
On Mon 07-03-16 19:12:33, Sergey Senozhatsky wrote: > Hello, > > On (03/07/16 09:22), Jan Kara wrote: > [..] > > > hm, just for note, none of system-wide wqs seem to have a ->rescuer thread > > > (WQ_MEM_RECLAIM). > > > > > > [..] &g

Re: [PATCH 3/3] radix-tree: support locking of individual exception entries.

2016-03-04 Thread Jan Kara
deleting locked entry so that we catch when someone doesn't properly obey the locking protocol... But I'm still somewhat hesitating whether it would not be better to move the locking out of generic radix tree code since it is not quite as generic as I'd like and e.g. clear_exceptional_entry() would us

Re: [PATCH 1/2] [media] vb2-memops: Fix over allocation of frame vectors

2016-03-04 Thread Jan Kara
.@newtec.dk> > Signed-off-by: Ricardo Ribalda Delgado <ricardo.riba...@gmail.com> The patch looks good. Thanks for fixing this! You can add: Reviewed-by: Jan Kara <j...@suse.cz> Honza > --- > > Maybe we sh

[PATCH 3/3] printk: debug: Slow down printing to 9600 bauds

2016-03-02 Thread Jan Kara
Signed-off-by: Jan Kara <j...@suse.cz> --- kernel/printk/printk.c | 35 ++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c index 03f5278b47b4..8ac60219059a 100644 --- a/kernel/printk/printk.c

[PATCH 2/3] printk: Skip messages on oops

2016-03-02 Thread Jan Kara
and then the oops message. Signed-off-by: Jan Kara <j...@suse.cz> --- kernel/printk/printk.c | 34 +- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c index 73ec760a4bc8..03f5278b47b4 100644 --- a/kernel/

Re: [RFC][PATCH v2 1/2] printk: Make printk() completely async

2016-03-07 Thread Jan Kara
ble purpose: exclusive printk() lock and a > console_drivers list lock. Well, but changing how console locking works is a separate issue, isn't it? So please as a separate patch set if you want to try it. Actually I don't think changing the locking will be so easy. console_lock/unlock is used e.g. for console blanking where you need to block any printing while you call ->unblank() for each console. That being said I don't think improvement is impossible, just given my experiences with console / printk code there will be surprises waiting for you :). Honza -- Jan Kara <j...@suse.com> SUSE Labs, CR

[PATCH 1/3] printk: Make printk() completely async

2016-03-02 Thread Jan Kara
to the original printk behavior. Signed-off-by: Jan Kara <j...@suse.cz> --- Documentation/kernel-parameters.txt | 10 +++ kernel/printk/printk.c | 146 +--- 2 files changed, 97 insertions(+), 59 deletions(-) diff --git a/Documentation/kernel-parameters.

Re: [PATCH v5 0/5] vfs: Use per-cpu list for SB's s_inodes list

2016-03-03 Thread Jan Kara
benefit much from this >feature. Hum, it seems you've missed my comment in [1] regarding a race I found. [1] http://www.spinics.net/lists/linux-fsdevel/msg95052.html Honza -- Jan Kara <j...@suse.com> SUSE Labs, CR

Re: [RFC PATCH] quota: Fix possible GFP due to uninitialised pointers

2016-03-03 Thread Jan Kara
> type) > > dquots = i_dquot(inode); > > + memset(got, 0, 3 * sizeof(struct dquot *)); > + > /* First get references to structures we might need. */ > for (cnt = 0; cnt < MAXQUOTAS; cnt++) { > struct kqid qid; > -- > 2.5

Re: Freezable workqueue blocks non-freezable workqueue during the system resume process

2016-03-03 Thread Jan Kara
filesystems and there are issues with that (Jiri Kosina was the last one which was trying to make this work AFAIR). And I think you need to stop writeback (and generally any IO) to be generated so that it doesn't interact in a strange way with device drivers being frozen. So IMO until suspend freezes filesystems & devices properly you have to freeze writeback workqueue. Honza -- Jan Kara <j...@suse.com> SUSE Labs, CR

Re: [PATCH 1/3] printk: Make printk() completely async

2016-03-03 Thread Jan Kara
On Thu 03-03-16 20:26:55, Tetsuo Handa wrote: > On 2016/03/03 0:59, Jan Kara wrote: > > This patch makes printk() completely asynchronous (similar to what > > printk_deferred() did until now). It appends message to the kernel > > printk buffer and queues work to do th

Re: [PATCH 3/3] radix-tree: support locking of individual exception entries.

2016-03-03 Thread Jan Kara
ctive(wq)) { > + struct wait_bit_key key = {.flags = root, .bit_nr = -2, > +.timeout = index}; > + __wake_up(wq, TASK_NORMAL, 1, ); > + } > +} > +EXPORT_SYMBOL(radix_tree_unlock); > + > +void radix_tree_delet

Re: [PATCH 1/7] printk: Hand over printing to console if printing too long

2016-03-02 Thread Jan Kara
On Tue 01-03-16 18:22:25, Denys Vlasenko wrote: > On Mon, Oct 26, 2015 at 5:52 AM, Jan Kara <j...@suse.com> wrote: > > This patch implements a mechanism where after printing specified number > > of characters (tunable as a kernel parameter printk.offload_chars), CPU &g

Re: [PATCH v2 block/for-linus] writeback: flush inode cgroup wb switches instead of pinning super_block

2016-03-02 Thread Jan Kara
king much by doing it in this cycle, so I'd vote for > doing it now. Yeah, without CGROUP_WRITEBACK enabled this patch is NOP so I don't care much when this gets merged. Honza -- Jan Kara <j...@suse.com> SUSE Labs, CR

Re: [RFC][PATCH v8 1/2] printk: Make printk() completely async

2016-04-04 Thread Jan Kara
c() won't loop forever when there's nothing to print. And that is all we need... I think the simplicity of this is worth the possible extra loops in printk_kthread_func(). Honza -- Jan Kara <j...@suse.com> SUSE Labs, CR

[GIT PULL] Quota fixes for 4.6-rc3

2016-04-04 Thread Jan Kara
Hello Linus, could you please pull from git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs.git for_linus to get fixes for oops when the new quotactl gets used with quotas disabled. Top of the tree is 8f9e8f5fcc05. The full shortlog is: Jan Kara (2): quota: Handle

Re: [PATCH v5 3/9] x86/head: Move early exception panic code into early_fixup_exception

2016-04-04 Thread Jan Kara
On Sat 02-04-16 13:58:19, Andy Lutomirski wrote: > [cc Jan Kara] > > On Sat, Apr 2, 2016 at 1:47 PM, Borislav Petkov <b...@alien8.de> wrote: > > On Sat, Apr 02, 2016 at 01:13:37PM -0700, Andy Lutomirski wrote: > >> Given that I this isn't really a regression wit

Re: [RFC][PATCH v8 1/2] printk: Make printk() completely async

2016-03-29 Thread Jan Kara
e message in the buffer, not before. Doesn't matter for correctness now but may be more future-proof. Honza -- Jan Kara <j...@suse.com> SUSE Labs, CR

Re: [PATCH] udf: Fix conversion of 'dstring' fields to UTF8

2016-04-25 Thread Jan Kara
Identifier and Volume Set Identifier fields. > The function is also renamed to udf_dstrCS0toUTF8 to distinctly > indicate that it handles 'dstring' input. Thanks. I've merged the patch to my tree. Honza -- Jan Kara <j...@suse.com> SUSE Labs, CR

Re: [PATCH 7/8] wbt: add general throttling mechanism

2016-04-28 Thread Jan Kara
ore of "why we do this?" than pure "what we do". > + > + if (!stat_sample_valid(stat)) > + return LAT_UNKNOWN; > + > + /* > + * If the 'min' latency exceeds our target, step down. > + */ > + if (stat[0].min > rwb->min_lat_nsec) { > + trace_wbt_lat(rwb->bdi, stat[0].min); > + trace_wbt_stat(rwb->bdi, stat); > + return LAT_EXCEEDED; > + } > + > + if (rwb->scale_step) > + trace_wbt_stat(rwb->bdi, stat); > + > + return LAT_OK; > +} > + Honza -- Jan Kara <j...@suse.com> SUSE Labs, CR

Re: [PATCHSET v5] Make background writeback great again for the first time

2016-04-28 Thread Jan Kara
On Wed 27-04-16 14:59:15, Jens Axboe wrote: > On Wed, Apr 27 2016, Jens Axboe wrote: > > On Wed, Apr 27 2016, Jens Axboe wrote: > > > On 04/27/2016 12:01 PM, Jan Kara wrote: > > > >Hi, > > > > > > > >On Tue 26-04-16 09:55:23, Jens Axboe

Re: [PATCH net-next 3/8] fs/quota: use nla_put_u64_64bit()

2016-04-26 Thread Jan Kara
QUOTA_NL_A_DEV_MINOR, > QUOTA_NL_A_CAUSED_ID, > + QUOTA_NL_A_PAD, > __QUOTA_NL_A_MAX, > }; > #define QUOTA_NL_A_MAX (__QUOTA_NL_A_MAX - 1) > -- > 2.8.1 > > -- Jan Kara <j...@suse.com> SUSE Labs, CR

Re: [PATCHSET v5] Make background writeback great again for the first time

2016-04-27 Thread Jan Kara
otational SATA drive with writeback cache, queue depth of the disk reported in /sys/block/sdb/device/queue_depth is 1. So I think we still need some tweaking on the low end of the storage spectrum so that we don't lose 10% of throughput for simple cases like this.

Re: [PATCH net-next 3/8] fs/quota: use nla_put_u64_64bit()

2016-04-26 Thread Jan Kara
On Tue 26-04-16 14:31:58, Nicolas Dichtel wrote: > Le 26/04/2016 13:08, Jan Kara a écrit : > > On Tue 26-04-16 10:06:13, Nicolas Dichtel wrote: > >> Signed-off-by: Nicolas Dichtel <nicolas.dich...@6wind.com> > > > > OK, so I somewhat miss a description

Re: [PATCH v12 3/3] printk: make printk.synchronous param rw

2016-04-23 Thread Jan Kara
uture. Something like 'can_print_async()'? But I don't feel too strongly about that so feel free to add: Reviewed-by: Jan Kara <j...@suse.cz> regardless whether you change this or not. Honza -- Jan Kara <j...@suse.com> SUSE Labs, CR

Re: [PATCH v2 5/5] dax: handle media errors in dax_do_io

2016-04-26 Thread Jan Kara
in DAX code? Or just provide stable page guarantees from DAX and do the redundancy from device mapper? This needs more thought... Honza -- Jan Kara <j...@suse.com> SUSE Labs, CR

Re: mmotm 2016-05-19-19-59 uploaded

2016-05-20 Thread Jan Kara
; >^ > > > include/linux/dax.h:39:5: error: unknown type name ___dax_iodone_t___ > > > dax_iodone_t di) > > > ^ > > > In file included from mm/vmscan.c:49:0: > > > include/linux/dax.h:14:3: error: unknown type name ___dax_iodone_t___ &

Re: [PATCH 3/3] udf: Use correct partition reference number for metadata

2016-05-19 Thread Jan Kara
ed this patch to my tree, I have just changed s_partition_ref to s_phys_partition_ref and added a comment about it to udf_sb.h.. Honza -- Jan Kara <j...@suse.com> SUSE Labs, CR

Re: [PATCH] udf: Check for IS_ERR in udf_get_pblock_meta25

2016-05-19 Thread Jan Kara
(IS_ERR(inode)) > return 0x; > retblk = udf_try_read_meta(inode, block, partition, offset); > } > -- > 2.5.5 > > -- Jan Kara <j...@suse.com> SUSE Labs, CR

Re: [PATCH 1/3] udf: Don't BUG on missing metadata partition descriptor

2016-05-19 Thread Jan Kara
inode, block, partition, offset); > if (retblk == 0x && mdata->s_metadata_fe) { > udf_warn(sb, "error reading from METADATA, trying to read from > MIRROR\n"); > -- > 2.1.4 > > -- Jan Kara <j...@suse.com> SUSE Labs, CR

Re: [PATCH 2/3] udf: Use IS_ERR when loading metadata mirror file entry

2016-05-19 Thread Jan Kara
c, map->s_partition_num); > + if (IS_ERR(mdata->s_mirror_fe)) > + mdata->s_mirror_fe = NULL; > mdata->s_flags |= MF_MIRROR_FE_LOADED; > } > > -- > 2.1.4 > > -- Jan Kara <j...@suse.com> SUSE Labs, CR

Re: [PATCH v4 6/6] block: Update blkdev_dax_capable() for consistency

2016-05-11 Thread Jan Kara
On Wed 11-05-16 08:25:10, Toshi Kani wrote: > On Wed, 2016-05-11 at 10:05 +0200, Jan Kara wrote: > > On Tue 10-05-16 10:23:57, Toshi Kani wrote: > > > > > > blkdev_dax_capable() is similar to bdev_dax_supported(), but needs > > > to remain as a separate i

Re: [PATCHSET v5] Make background writeback great again for the first time

2016-05-11 Thread Jan Kara
On Tue 03-05-16 14:17:19, Jan Kara wrote: > The question remains how common a pattern where throttling of background > writeback delays also something else is. I'll schedule a couple of > benchmarks to measure impact of your patches for a wider range of workloads > (but sadly pretty

Re: [PATCH v7 5/6] dax: for truncate/hole-punch, do zeroing through the driver if possible

2016-05-12 Thread Jan Kara
istoph Hellwig <h...@infradead.org> > Cc: Dave Chinner <da...@fromorbit.com> > Cc: Jan Kara <j...@suse.cz> > Reviewed-by: Christoph Hellwig <h...@lst.de> > Signed-off-by: Vishal Verma <vishal.l.ve...@intel

Re: [PATCH v7 4/6] dax: export a low-level __dax_zero_page_range helper

2016-05-12 Thread Jan Kara
g <h...@lst.de> Looks good. You can add: Reviewed-by: Jan Kara <j...@suse.cz> BTW: You are supposed to add your Signed-off-by when forwarding patches like this... Honza -- Jan Kara <j...@suse.com> SUSE Labs, CR

Re: [PATCHSET v5] Make background writeback great again for the first time

2016-05-16 Thread Jan Kara
gets freed with scsi-mq or deadline IO scheduler so that we have 100% certain config. Honza -- Jan Kara <j...@suse.com> SUSE Labs, CR

Re: [PATCH v4 6/6] block: Update blkdev_dax_capable() for consistency

2016-05-11 Thread Jan Kara
Honza -- Jan Kara <j...@suse.com> SUSE Labs, CR

Re: [PATCH v6 4/5] dax: for truncate/hole-punch, do zeroing through the driver if possible

2016-05-11 Thread Jan Kara
istoph Hellwig <h...@infradead.org> > Cc: Dave Chinner <da...@fromorbit.com> > Cc: Jan Kara <j...@suse.cz> > Reviewed-by: Christoph Hellwig <h...@lst.de> > Signed-off-by: Vishal Verma <vishal.l.ve...@intel.com> ... > +static bool dax_range_is_aligned(struc

Re: [PATCH v2 1/3] ext4: Add alignment check for DAX mount

2016-05-03 Thread Jan Kara
lines is actually reporting appropriate mount error in dmesg and that is fs-dependent so it needs to stay in the filesystem... So what do you have in mind? Honza -- Jan Kara <j...@suse.com> SUSE Labs, CR

Re: [PATCH v2 1/3] ext4: Add alignment check for DAX mount

2016-05-03 Thread Jan Kara
> Reported-by: Micah Parrish <micah.parr...@hpe.com> > Signed-off-by: Toshi Kani <toshi.k...@hpe.com> > Cc: "Theodore Ts'o" <ty...@mit.edu> > Cc: Andreas Dilger <adilger.ker...@dilger.ca> > Cc: Jan Kara <j...@suse.cz> > Cc: Dan Williams &l

Re: [PATCH 7/8] wbt: add general throttling mechanism

2016-05-03 Thread Jan Kara
that > window, then treat that case as if it had completed but exceeded the min > latency. And then scale back. > > We'll always treat a state sample with 1 read as valuable, but for this > case, we don't have that sample until it completes. > > Does that make more sense? OK, makes sense. Thanks for explanation. Honza -- Jan Kara <j...@suse.com> SUSE Labs, CR

Re: [PATCHSET v5] Make background writeback great again for the first time

2016-05-03 Thread Jan Kara
On Tue 03-05-16 08:40:11, Chris Mason wrote: > On Tue, May 03, 2016 at 02:17:19PM +0200, Jan Kara wrote: > > On Thu 28-04-16 12:46:41, Jens Axboe wrote: > > > >>- rwb->wb_max = 1 + ((depth - 1) >> min(31U, rwb->scale_step)); > > > >

Re: [PATCHSET v5] Make background writeback great again for the first time

2016-05-03 Thread Jan Kara
(but inherent in its journal design) and we have a way to deal with this either by enabling delayed allocation or by turning off the writeback throttling... Honza -- Jan Kara <j...@suse.com> SUSE Labs, CR

Re: [PATCH v2 2/3] ext2: Add alignment check for DAX mount

2016-05-03 Thread Jan Kara
gt; Signed-off-by: Toshi Kani <toshi.k...@hpe.com> > Cc: Jan Kara <j...@suse.cz> > Cc: Dan Williams <dan.j.willi...@intel.com> > Cc: Ross Zwisler <ross.zwis...@linux.intel.com> > Cc: Christoph Hellwig <h...@infradead.org> > Cc: Boaz Harrosh <b...@plex

Re: [PATCH 7/8] wbt: add general throttling mechanism

2016-05-03 Thread Jan Kara
On Tue 03-05-16 17:40:32, Jan Kara wrote: > On Tue 03-05-16 11:34:10, Jan Kara wrote: > > Yeah, once I'll hunt down that regression with old disk, I can have a look > > into how writeback throttling plays together with blkio-controller. > > So I've tried the following scrip

Re: [PATCH 7/8] wbt: add general throttling mechanism

2016-05-03 Thread Jan Kara
On Tue 03-05-16 08:23:27, Jens Axboe wrote: > On 05/03/2016 03:34 AM, Jan Kara wrote: > >On Thu 28-04-16 12:53:50, Jens Axboe wrote: > >>>2) As far as I can see in patch 8/8, you have plugged the throttling above > >>>the IO scheduler. When there are e.g

Re: [PATCH 7/8] wbt: add general throttling mechanism

2016-05-03 Thread Jan Kara
On Tue 03-05-16 11:34:10, Jan Kara wrote: > Yeah, once I'll hunt down that regression with old disk, I can have a look > into how writeback throttling plays together with blkio-controller. So I've tried the following script (note that you need cgroup v2 for writeback IO to be thr

Re: [PATCH v2 3/3] xfs: Add alignment check for DAX mount

2016-05-05 Thread Jan Kara
in mind and was wondering if you are OK with it > since I am incline to keep the ext2/4 message style as majority rule. :) > https://lkml.org/lkml/2016/5/3/543 > > Assuming that's OK, I will make this change. Yeah, just send me ext2 changes on top of your v2 and I can pull it to my tree. Honza -- Jan Kara <j...@suse.com> SUSE Labs, CR

Re: [PATCH] ext4: Fix check of dqget() return value in ext4_ioctl_setproject()

2016-05-05 Thread Jan Kara
; a month ago but the bug is still present. Yeah, it seems Ted forgot to pull the fix. Ted? BTW, feel free to add Reviewed-by: Jan Kara <j...@suse.cz> Honza -- Jan Kara <j...@suse.com> SUSE Labs, CR

Re: [PATCH v5 1/2] dax: Don't touch i_dio_count in dax_do_io()

2016-05-05 Thread Jan Kara
le is rather harsh for persistent memory as well... Honza -- Jan Kara <j...@suse.com> SUSE Labs, CR

Re: [PATCH v5 2/2] ext4: Make cache hits/misses per-cpu counts

2016-05-05 Thread Jan Kara
With patch % change > - -- > Read-only 16499MB/s 17215MB/s+4.3% > Read-write 4361MB/s4794MB/s+9.9% > > Signed-off-by: Waiman Long <waiman.l...@hpe.com> The patch looks good

Re: [PATCH v5 1/2] dax: Don't touch i_dio_count in dax_do_io()

2016-05-05 Thread Jan Kara
On Thu 05-05-16 07:27:48, Christoph Hellwig wrote: > On Thu, May 05, 2016 at 04:16:37PM +0200, Jan Kara wrote: > > We cannot easily do this currently - the reason is that in several places we > > wait for i_dio_count to drop to 0 (look for inode_dio_wait()) while > > ho

Re: [PATCH v5 1/5] dax: fallback from pmd to pte on error

2016-05-10 Thread Jan Kara
t being that reducing the span of the > dax request may avoid the error region. > > Signed-off-by: Dan Williams <dan.j.willi...@intel.com> The patch looks good. You can add: Reviewed-by: Jan Kara <j...@suse.cz>

<    1   2   3   4   5   6   7   8   9   10   >