From: Junxiao Bi <junxiao.bi@oracle.com>
To: jlbec@evilplan.org
Cc: ocfs2-devel@oss.oracle.com, linux-aio@kvack.org,
mfasheh@suse.com, joe.jin@oracle.com,
linux-kernel@vger.kernel.org, stable@vger.kernel.org,
akpm@linux-foundation.org
Subject: [Ocfs2-devel] [PATCH v4 2/2] ocfs2: clear unaligned io flag when dio fails
Date: Wed, 04 Jul 2012 15:51:57 +0800 [thread overview]
Message-ID: <4FF3F61D.2030204@oracle.com> (raw)
In-Reply-To: <20120704073415.GF9863@dhcp-172-17-9-228.mtv.corp.google.com>
On 07/04/2012 03:34 PM, Joel Becker wrote:
> On Wed, Jun 27, 2012 at 05:09:55PM +0800, Junxiao Bi wrote:
>> The unaligned io flag is set in the kiocb when an unaligned
>> dio is issued, it should be cleared even when the dio fails,
>> or it may affect the following io which are using the same
>> kiocb.
>>
>> Signed-off-by: Junxiao Bi <junxiao.bi@oracle.com>
>> Cc: stable at vger.kernel.org
> This patch is now part of the 'fixes' branch of ocfs2.git.
Thank you. Are you going to merge my first patch "[PATCH v4 1/2] aio:
make kiocb->private NUll in init_sync_kiocb()"? Though Andrew's cleanup
patch covered this fix, but it can't tell how this fix a ocfs2 hang bug.
Also merging it will make it into stable branch.
>
> Joel
>
>> ---
>> fs/ocfs2/file.c | 4 +++-
>> 1 file changed, 3 insertions(+), 1 deletion(-)
>>
>> diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c
>> index 061591a..98513c8 100644
>> --- a/fs/ocfs2/file.c
>> +++ b/fs/ocfs2/file.c
>> @@ -2422,8 +2422,10 @@ out_dio:
>> unaligned_dio = 0;
>> }
>>
>> - if (unaligned_dio)
>> + if (unaligned_dio) {
>> + ocfs2_iocb_clear_unaligned_aio(iocb);
>> atomic_dec(&OCFS2_I(inode)->ip_unaligned_aio);
>> + }
>>
>> out:
>> if (rw_level != -1)
>> --
>> 1.7.9.5
>>
>>
>> _______________________________________________
>> Ocfs2-devel mailing list
>> Ocfs2-devel at oss.oracle.com
>> https://oss.oracle.com/mailman/listinfo/ocfs2-devel
WARNING: multiple messages have this Message-ID (diff)
From: Junxiao Bi <junxiao.bi@oracle.com>
To: jlbec@evilplan.org
Cc: ocfs2-devel@oss.oracle.com, linux-aio@kvack.org,
mfasheh@suse.com, joe.jin@oracle.com,
linux-kernel@vger.kernel.org, stable@vger.kernel.org,
akpm@linux-foundation.org
Subject: Re: [Ocfs2-devel] [PATCH v4 2/2] ocfs2: clear unaligned io flag when dio fails
Date: Wed, 04 Jul 2012 15:51:57 +0800 [thread overview]
Message-ID: <4FF3F61D.2030204@oracle.com> (raw)
In-Reply-To: <20120704073415.GF9863@dhcp-172-17-9-228.mtv.corp.google.com>
On 07/04/2012 03:34 PM, Joel Becker wrote:
> On Wed, Jun 27, 2012 at 05:09:55PM +0800, Junxiao Bi wrote:
>> The unaligned io flag is set in the kiocb when an unaligned
>> dio is issued, it should be cleared even when the dio fails,
>> or it may affect the following io which are using the same
>> kiocb.
>>
>> Signed-off-by: Junxiao Bi <junxiao.bi@oracle.com>
>> Cc: stable@vger.kernel.org
> This patch is now part of the 'fixes' branch of ocfs2.git.
Thank you. Are you going to merge my first patch "[PATCH v4 1/2] aio:
make kiocb->private NUll in init_sync_kiocb()"? Though Andrew's cleanup
patch covered this fix, but it can't tell how this fix a ocfs2 hang bug.
Also merging it will make it into stable branch.
>
> Joel
>
>> ---
>> fs/ocfs2/file.c | 4 +++-
>> 1 file changed, 3 insertions(+), 1 deletion(-)
>>
>> diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c
>> index 061591a..98513c8 100644
>> --- a/fs/ocfs2/file.c
>> +++ b/fs/ocfs2/file.c
>> @@ -2422,8 +2422,10 @@ out_dio:
>> unaligned_dio = 0;
>> }
>>
>> - if (unaligned_dio)
>> + if (unaligned_dio) {
>> + ocfs2_iocb_clear_unaligned_aio(iocb);
>> atomic_dec(&OCFS2_I(inode)->ip_unaligned_aio);
>> + }
>>
>> out:
>> if (rw_level != -1)
>> --
>> 1.7.9.5
>>
>>
>> _______________________________________________
>> Ocfs2-devel mailing list
>> Ocfs2-devel@oss.oracle.com
>> https://oss.oracle.com/mailman/listinfo/ocfs2-devel
next prev parent reply other threads:[~2012-07-04 7:51 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-27 9:09 [Ocfs2-devel] [V4]fix ocfs2 aio/dio writing process hang Junxiao Bi
2012-06-27 9:09 ` Junxiao Bi
2012-06-27 9:09 ` [Ocfs2-devel] [PATCH v4 1/2] aio: make kiocb->private NUll in init_sync_kiocb() Junxiao Bi
2012-06-27 9:09 ` Junxiao Bi
2012-06-28 22:39 ` [Ocfs2-devel] " Andrew Morton
2012-06-28 22:39 ` Andrew Morton
2012-06-29 9:22 ` [Ocfs2-devel] " Joel Becker
2012-06-29 9:22 ` Joel Becker
2012-06-29 10:17 ` [Ocfs2-devel] " Junxiao Bi
2012-06-29 10:17 ` Junxiao Bi
2012-06-29 10:29 ` [Ocfs2-devel] " Andrew Morton
2012-06-29 10:29 ` Andrew Morton
2012-06-29 10:48 ` [Ocfs2-devel] " Junxiao Bi
2012-06-29 10:48 ` Junxiao Bi
2012-06-29 10:49 ` [Ocfs2-devel] " Junxiao Bi
2012-06-29 10:49 ` Junxiao Bi
2012-07-04 6:13 ` [Ocfs2-devel] " Joel Becker
2012-07-04 6:13 ` Joel Becker
2012-06-27 9:09 ` [Ocfs2-devel] [PATCH v4 2/2] ocfs2: clear unaligned io flag when dio fails Junxiao Bi
2012-06-27 9:09 ` Junxiao Bi
2012-07-04 7:34 ` [Ocfs2-devel] " Joel Becker
2012-07-04 7:34 ` Joel Becker
2012-07-04 7:51 ` Junxiao Bi [this message]
2012-07-04 7:51 ` Junxiao Bi
2012-07-05 9:22 ` Joel Becker
2012-07-05 9:22 ` Joel Becker
2012-06-28 8:34 ` [V4]fix ocfs2 aio/dio writing process hang Joel Becker
2012-06-28 8:48 ` [Ocfs2-devel] " Junxiao Bi
2012-06-28 8:48 ` Junxiao Bi
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=4FF3F61D.2030204@oracle.com \
--to=junxiao.bi@oracle.com \
--cc=akpm@linux-foundation.org \
--cc=jlbec@evilplan.org \
--cc=joe.jin@oracle.com \
--cc=linux-aio@kvack.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mfasheh@suse.com \
--cc=ocfs2-devel@oss.oracle.com \
--cc=stable@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.