From: Jaegeuk Kim <jaegeuk.kim@samsung.com>
To: Namjae Jeon <linkinjeon@gmail.com>
Cc: Jason Hrycay <jhrycay@gmail.com>,
linux-kernel@vger.kernel.org,
linux-f2fs-devel@lists.sourceforge.net, C.Fries@motorola.com,
jason.hrycay@motorola.com
Subject: Re: [PATCH] f2fs: move f2fs_balance_fs from truncate to punch_hole
Date: Tue, 09 Apr 2013 17:56:15 +0900 [thread overview]
Message-ID: <1365497775.4353.69.camel@kjgkr> (raw)
In-Reply-To: <CAKYAXd_TUmZ4TM_v3bYyD7gyAnZ9hAoZ5sMmV3kGJe0BLqu84Q@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1512 bytes --]
2013-04-09 (화), 15:46 +0900, Namjae Jeon:
> 2013/4/9, Jason Hrycay <jhrycay@gmail.com>:
> > From: Jason Hrycay <jason.hrycay@motorola.com>
> >
> > Move the f2fs_balance_fs out of the truncate_hole function and only
> > perform that in punch_hole use case. The commit:
> >
> > ed60b1644e7f7e5dd67d21caf7e4425dff05dad0
> >
> > intended to do this but moved it into truncate_hole to cover more
> > cases. However, a deadlock scenario is possible when deleting an inode
> > entry under specific conditions:
> >
> > f2fs_delete_entry()
> > mutex_lock_op(sbi, DENTRY_OPS);
> > truncate_hole()
> > f2fs_balance_fs()
> > mutex_lock(&sbi->gc_mutex);
> > f2fs_gc()
> > write_checkpoint()
> > block_operations()
> > mutex_lock_op(sbi, DENTRY_OPS);
> >
> > Lets move it into the punch_hole case to cover the original intent of
> > avoiding it during fallocate's expand_inode_data case.
> >
> > Change-Id: I29f8ea1056b0b88b70ba8652d901b6e8431bb27e
> > Signed-off-by: Jason Hrycay <jason.hrycay@motorola.com>
> Hi,
> With the latest commit 9995bf953a83749abd9fa22f72ab2b0be341025a
> About introducing the global locking method in ‘f2fs’,
> I think we no longer will have a case of deadlock happening in this path.
Hi, Namjae.
I found that this bug still exists in the new locking model.
Please see the v3 patch. :)
Thanks,
>
> Thanks.
--
Jaegeuk Kim
Samsung
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
next prev parent reply other threads:[~2013-04-09 8:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-09 1:16 Jason Hrycay
2013-04-09 6:46 ` Namjae Jeon
2013-04-09 8:56 ` Jaegeuk Kim [this message]
2013-04-09 8:55 ` Jaegeuk Kim
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1365497775.4353.69.camel@kjgkr \
--to=jaegeuk.kim@samsung.com \
--cc=C.Fries@motorola.com \
--cc=jason.hrycay@motorola.com \
--cc=jhrycay@gmail.com \
--cc=linkinjeon@gmail.com \
--cc=linux-f2fs-devel@lists.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®