aio: adapt to upstream commit 2055da97389a605c8a00d163d40903afbe413921

This commit is contained in:
Thomas Schoebel-Theuer 2019-04-16 18:04:23 +02:00 committed by Thomas Schoebel-Theuer
parent f8e552a21b
commit ee05ff096e
1 changed files with 10 additions and 1 deletions

View File

@ -799,7 +799,16 @@ static int _get_fd(void)
* removed again.
*/
#ifndef blk_pm_request
if (unlikely(!files->resize_wait.task_list.next)) {
/* Upstream commit 2055da97389a605c8a00d163d40903afbe413921
* changed the field name.
* Detected via 8ada92799ec4de00f4bc0f10b1ededa256c1ab22
*/
#ifdef wait_event_killable_timeout
#define XXX_NAME head
#else
#define XXX_NAME task_list
#endif
if (unlikely(!files->resize_wait.XXX_NAME.next)) {
files->resize_in_progress = false;
init_waitqueue_head(&files->resize_wait);
}