Re: [PATCH v4 02/28] mm: Add an unlock function for PG_private_2/PG_fscache

From
David Howells <dhowells@redhat.com>
Date
2021-03-23 22:07:36
Also in
ceph-devel, linux-cifs, linux-fsdevel, linux-nfs, lkml
Reply to
David Howells, 2021-03-23
David Howells [off-list ref] wrote:
quoted
quoted
-	wait_on_page_writeback(page);
+	if (wait_on_page_writeback_killable(page) < 0)
+		return VM_FAULT_RETRY | VM_FAULT_LOCKED;
You forgot to unlock the page.
Do I need to?  Doesn't VM_FAULT_LOCKED indicate that to the caller?  Or is it
impermissible to do it like that?
Looks like, yes, I do need to.  VM_FAULT_LOCKED is ignored if RETRY is given.

David

Thread (30 messages) 30 messages, 4 authors, last reply 2021-03-23
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help