Re: [PATCH 23/43] CacheFiles: Permit the page lock state to be monitored [ver #46]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Nick Piggin <nickpiggin@xxxxxxxxxxxx> wrote:

> I prefer to nack this because it is exporting details of the page
> locking mechanism. unlock_page is very heavyweight in large part
> because of the memory barriers and cacheline required to check the
> waitqueue. I have patches to avoid all that if the page lock is
> not contended.
> 
> What's wrong with using wait_on_page_locked, like everyone else does?

When fscache_read_or_alloc_pages() is called from, say, nfs_readpages(), and is
given a few hundred pages to readahead from the cache, who does the
wait_on_page_locked() on each of the _backing_ fs's pages?

The way I've arranged things to work is for the backing fs pages to be copied
to the netfs pages and released in the order they're read from the disk.

There's a small pool of threads that processes the pages.  I don't want to have
to create a thread for each readpages(), and I don't want readpages() to have
to wait for all the requests it makes.

Ideally, I'd like to ask the backing fs to read directly into netfs pages, but
that's not particularly feasible at the moment.

David
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux