]> git.baikalelectronics.ru Git - kernel.git/commit
afs: Use wait_on_page_writeback_killable
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Sat, 20 Mar 2021 05:40:40 +0000 (05:40 +0000)
committerDavid Howells <dhowells@redhat.com>
Tue, 23 Mar 2021 20:54:37 +0000 (20:54 +0000)
commit2503808830245c4f974130d2bdb05e9d44468028
treea97cef12b7f4e828a8047b9398198aba52040189
parentd4f575199ddecb70fa3c7f22ddd270951cd9979a
afs: Use wait_on_page_writeback_killable

Open-coding this function meant it missed out on the recent bugfix
for waiters being woken by a delayed wake event from a previous
instantiation of the page[1].

[DH: Changed the patch to use vmf->page rather than variable page which
 doesn't exist yet upstream]

Fixes: a085c6b6c925 ("afs: Implement shared-writeable mmap")
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David Howells <dhowells@redhat.com>
Tested-by: kafs-testing@auristor.com
cc: linux-afs@lists.infradead.org
cc: linux-mm@kvack.org
Link: https://lore.kernel.org/r/20210320054104.1300774-4-willy@infradead.org
Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=7d76641ffb73680480bddd095e4df136ff988f40
fs/afs/write.c