diff options
author | Souptick Joarder <jrdr.linux@gmail.com> | 2020-07-01 11:47:42 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-07-01 15:44:26 +0200 |
commit | b6d13bd9f2c189c7a18bb5c8233078149496837f (patch) | |
tree | 09584f9b85b47d3a0ba991f7a145b7297e3e5977 /ipc | |
parent | staging: kpc2000: kpc_dma: Unpin partial pinned pages (diff) | |
download | linux-dev-b6d13bd9f2c189c7a18bb5c8233078149496837f.tar.xz linux-dev-b6d13bd9f2c189c7a18bb5c8233078149496837f.zip |
staging: kpc2000: kpc_dma: Convert set_page_dirty() --> set_page_dirty_lock()
First, convert set_page_dirty() to set_page_dirty_lock()
Second, there is an interval in there after set_page_dirty() and
before put_page(), in which the device could be running and setting
pages dirty. Moving set_page_dirty_lock() after dma_unmap_sg().
Signed-off-by: Souptick Joarder <jrdr.linux@gmail.com>
Suggested-by: John Hubbard <jhubbard@nvidia.com>
Cc: John Hubbard <jhubbard@nvidia.com>
Cc: Bharath Vedartham <linux.bhar@gmail.com>
Cc: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/1593584264-16982-3-git-send-email-jrdr.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions