From: "LIOU Payphone" <lioupayphone@gmail.com>
To: <linux-fsdevel@vger.kernel.org>
Subject: ask for help, a question about ext3_ioctl()
Date: Thu, 25 Oct 2007 10:30:14 +0800 [thread overview]
Message-ID: <001d01c816ae$fe5a23e0$fb0e6ba0$@com> (raw)
hello, everyone.
I am puzzled when reading the function named ext3_ioctl().
In the branch named EXT3_IOC_SETFLAGS, inode->mutex was lock firstly, a handle with 1 journal-blocks was started consequently by calling ext3_journal_start().
i investigated the code of ext3_journal_start(), found that if there were no journal blocks left at it happens the process who call ext3_journal_start would be hung up unless some journal block were released.
i want to confirm whether such a situation would happen : there are no journal blocks left when ext3_journal_start() called and other processes could not release the journal blocks they currently holding for an unkown reason. so, when a process who called ext3_ioctl with command "EXT3_IOC_SETFLAGS" will be hung up even though the inode->i_mutex was of locked. in such a situation, the inode->i_mutex would not be released.
a potential deadlock comes on?
many thanks . :-)
reply other threads:[~2007-10-25 2:30 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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='001d01c816ae$fe5a23e0$fb0e6ba0$@com' \
--to=lioupayphone@gmail.com \
--cc=linux-fsdevel@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.