[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH hurd/ext2fs] Sync pager before clearing MAY_CACHE flag
From: |
Samuel Thibault |
Subject: |
Re: [PATCH hurd/ext2fs] Sync pager before clearing MAY_CACHE flag |
Date: |
Sun, 2 Oct 2011 20:42:43 +0200 |
User-agent: |
Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30) |
Sergio López, le Thu 29 Sep 2011 11:44:40 +0200, a écrit :
> Sync'ing the pager before clearing that flag ensures that there aren't
> dirty pages in the object before its termination.
Do you mean that the writes will be completely avoided for objects which
have actually been removed?
> @@ -851,7 +851,10 @@ drop_pager_softrefs (struct node *node)
> spin_unlock (&node_to_page_lock);
>
> if (MAY_CACHE && pager)
> - pager_change_attributes (pager, 0, MEMORY_OBJECT_COPY_DELAY, 0);
> + {
> + pager_sync (pager, 1);
Won't using wait=1 reduce performance due to waiting for completion?
> + pager_change_attributes (pager, 0, MEMORY_OBJECT_COPY_DELAY, 0);
> + }
> if (pager)
> ports_port_deref (pager);
> }
Samuel
- Re: [PATCH hurd/ext2fs] Sync pager before clearing MAY_CACHE flag,
Samuel Thibault <=