Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net/rds: Track user mapped pages through special API
Convert net/rds to use the newly introduces pin_user_pages() API, which properly sets FOLL_PIN. Setting FOLL_PIN is now required for code that requires tracking of pinned pages. Note that this effectively changes the code's behavior: it now ultimately calls set_page_dirty_lock(), instead of set_page_dirty(). This is probably more accurate. As Christoph Hellwig put it, "set_page_dirty() is only safe if we are dealing with a file backed page where we have reference on the inode it hangs off." [1] [1] https://lore.kernel.org/r/[email protected] Cc: Hans Westgaard Ry <[email protected]> Cc: Santosh Shilimkar <[email protected]> Signed-off-by: Leon Romanovsky <[email protected]> Signed-off-by: John Hubbard <[email protected]> Acked-by: Santosh Shilimkar <[email protected]> Signed-off-by: David S. Miller <[email protected]>
- Loading branch information