mm-filemap-dont-call-readpage-if-iocb_waitq-is-set.patch removed from -mm tree
The patch titled
Subject: mm/filemap: don't call ->readpage if IOCB_WAITQ is set
has been removed from the -mm tree. Its filename was
mm-filemap-dont-call-readpage-if-iocb_waitq-is-set.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: "Matthew Wilcox (Oracle)" <[email protected]>
Subject: mm/filemap: don't call ->readpage if IOCB_WAITQ is set
The readpage operation can block in many (most?) filesystems, so we should punt to a work queue instead of calling it. This was the last caller of lock_page_for_iocb(), so remove it.
---
mm/filemap.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-)
mm/filemap.c renamed from mm/filemap.c~mm-filemap-dont-call-readpage-if-iocb_waitq-is-set +2 -12
@@ -2154,16 +2154,6 @@ static void shrink_readahead_size_eio(st ra->ra_pages /=4 ; } -static int lock_page_for_iocb (struct kiocb *iocb,struct page *page) -{ -if (iocb->ki_flags &IOCB_WAITQ ) -return lock_page_async (page, iocb->ki_waitq); -else if (iocb->ki_flags &IOCB_NOWAIT ) -return trylock_page (page) ?0 : -EAGAIN ; -else -return lock_page_killable (page); -} -/* * filemap_get_read_batch - Get a batch of pages for read *
@@ -2215,7 +2205,7 @@ static struct page *filemap_read_page(ststruct file_ra_state *ra = &filp->f_ra;int error; -if (iocb->ki_flags & (IOCB_NOIO |IOCB_NOWAIT )) { +if (iocb->ki_flags & (IOCB_NOIO |IOCB_NOWAIT |IOCB_WAITQ )) {unlock_page (page);put_page (page);return ERR_PTR (-EAGAIN );
@@ -2236,7 +2226,7 @@ static struct page *filemap_read_page(st }if (!PageUptodate (page)) { - error =lock_page_for_iocb (iocb, page); + error =lock_page_killable (page);if (unlikely (error)) {put_page (page);return ERR_PTR (error);
_
Patches currently in -mm which might be from [email protected] are
mm-make-pagecache-tagged-lookups-return-only-head-pages.patch mm-shmem-use-pagevec_lookup-in-shmem_unlock_mapping.patch mm-swap-optimise-get_shadow_from_swap_cache.patch mm-add-fgp_entry.patch mm-filemap-rename-find_get_entry-to-mapping_get_entry.patch mm-filemap-add-helper-for-finding-pages.patch mm-filemap-add-helper-for-finding-pages-fix.patch mm-filemap-add-mapping_seek_hole_data.patch mm-filemap-add-mapping_seek_hole_data-fix.patch iomap-use-mapping_seek_hole_data.patch mm-add-and-use-find_lock_entries.patch mm-add-and-use-find_lock_entries-fix.patch mm-add-an-end-parameter-to-find_get_entries.patch mm-add-an-end-parameter-to-pagevec_lookup_entries.patch mm-remove-nr_entries-parameter-from-pagevec_lookup_entries.patch mm-pass-pvec-directly-to-find_get_entries.patch mm-remove-pagevec_lookup_entries.patch