Re: [PATCH 07/15] mm: add support for async page locking

2020-07-07 Thread Jens Axboe
On 7/7/20 5:32 AM, Andreas Grünbacher wrote: >> @@ -2131,6 +2166,11 @@ ssize_t generic_file_buffered_read(struct kiocb *iocb, >> } >> >> readpage: >> + if (iocb->ki_flags & IOCB_NOWAIT) { >> + unlock_page(page); >> +

Re: [PATCH 07/15] mm: add support for async page locking

2020-07-07 Thread Andreas Grünbacher
Jens, Am Do., 18. Juni 2020 um 16:47 Uhr schrieb Jens Axboe : > Normally waiting for a page to become unlocked, or locking the page, > requires waiting for IO to complete. Add support for lock_page_async() > and wait_on_page_locked_async(), which are callback based instead. This > allows a caller

[PATCH 07/15] mm: add support for async page locking

2020-06-18 Thread Jens Axboe
Normally waiting for a page to become unlocked, or locking the page, requires waiting for IO to complete. Add support for lock_page_async() and wait_on_page_locked_async(), which are callback based instead. This allows a caller to get notified when a page becomes unlocked, rather than wait for it.