backports: fix bit_wait() and bit_wait_io()
authorHauke Mehrtens <hauke@hauke-m.de>
Sat, 26 Jul 2014 19:37:03 +0000 (21:37 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 27 Jul 2014 21:40:17 +0000 (23:40 +0200)
commit4194956a6c8a36cfccc53207470412d7fa12bb36
tree15c9b5f31a8929437d452096f40f6e57e8891c7a
parenta7176940b9685a32c8172297c7f5ee369049067a
backports: fix bit_wait() and bit_wait_io()

In kernel version < 3.17 wait_on_bit() takes an action as a parameter,
which contains a schedule() or io_schedule() call in most cases. For
such calls wait_on_bit() was changed to not take an action but execute
schedule() action. This patch backports the new behavior to old kernel
versions.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
backport/backport-include/linux/wait.h [new file with mode: 0644]
backport/compat/Makefile
backport/compat/backport-3.17.c [new file with mode: 0644]