ceph: fix page invalidation deadlock
authorSage Weil <sage@newdream.net>
Thu, 12 Nov 2009 23:07:24 +0000 (15:07 -0800)
committerSage Weil <sage@newdream.net>
Thu, 12 Nov 2009 23:57:05 +0000 (15:57 -0800)
We occasionally want to make a best-effort attempt to invalidate cache
pages without fear of blocking.  If this fails, we fall back to an async
invalidate in another thread.

Use invalidate_mapping_pages instead of invalidate_inode_page2, as that
will skip locked pages, and not deadlock.

Signed-off-by: Sage Weil <sage@newdream.net>

No differences found