commit | d53ba6b3bba33432cc37b7101a86f8f3392c46e7 | [log] [tgz] |
---|---|---|
author | Ian Munsie <imunsie@au1.ibm.com> | Thu Oct 09 11:17:46 2014 +1100 |
committer | Michael Ellerman <mpe@ellerman.id.au> | Thu Oct 09 11:29:57 2014 +1100 |
tree | a82fe60070c230303bc1daa7ce55384ab46904d0 | |
parent | a9282d01cf357379ce29103cec5e7651a53c634d [diff] |
cxl: Fix afu_read() not doing finish_wait() on signal or non-blocking If afu_read() returned due to a signal or the AFU file descriptor being opened non-blocking it would not call finish_wait() before returning, which could lead to a crash later when something else wakes up the wait queue. This patch restructures the wait logic to ensure that the cleanup is done correctly. Signed-off-by: Ian Munsie <imunsie@au1.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>