From: Srinivas Eeda <srinivas.eeda@oracle.com>
To: Jens Axboe <axboe@kernel.dk>
Cc: linux-fsdevel@vger.kernel.org, jack@suse.cz
Subject: Re: [PATCH 1/1] writeback fix bdi thread race in mark_inode_dirty
Date: Mon, 22 Jul 2013 10:06:47 -0700 [thread overview]
Message-ID: <51ED66A7.3020100@oracle.com> (raw)
In-Reply-To: <20130722154101.GT32755@kernel.dk>
Hi Jens,
Thanks!
I am new to submitting patches to linux-fsdevel. Is there a mailing list
I should submit this patch or someone will pick this patch for mainline
and stable branch?
Thanks,
--Srini
On 07/22/2013 08:41 AM, Jens Axboe wrote:
> On Fri, Jul 19 2013, Srinivas Eeda wrote:
>> In __mark_inode_dirty, a process checks !wb_has_dirty_io outside of list_lock
>> spinlock. This could cause a race, where process sees that list has dirty io
>> and decides not wake up bdi thread and waits for spinlock to add to dirty list.
>> Right at this time bdi_writeback_workfn finished write-back on last inode.
>> It sees the list is empty and ends. Process could now get the spinlock and
>> add inode to dirty list and doesn't wakeup bdi thread. Future calls to
>> __mark_inode_dirty also do not wake up the thread because list is not empty
>> any more.
>>
>> Fix is to get wb.list_lock spinlock before checking the dirty list
> With Jan's ack, lets add this for the current cycle. Should go into
> stable as well, imho.
>
next prev parent reply other threads:[~2013-07-22 17:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-19 18:05 [PATCH 1/1] writeback fix bdi thread race in mark_inode_dirty Srinivas Eeda
2013-07-22 13:32 ` Jan Kara
2013-07-22 15:41 ` Jens Axboe
2013-07-22 17:06 ` Srinivas Eeda [this message]
2013-07-22 18:12 ` Jens Axboe
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=51ED66A7.3020100@oracle.com \
--to=srinivas.eeda@oracle.com \
--cc=axboe@kernel.dk \
--cc=jack@suse.cz \
--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.