From: Benjamin LaHaise Date: Tue, 29 Apr 2014 16:45:17 +0000 (-0400) Subject: aio: report error from io_destroy() when threads race in io_destroy() X-Git-Tag: omap-for-v3.16/fixes-against-rc1~15^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb2d44838320b78e6e3b5eb2e35b70f62f262e4c;p=pandora-kernel.git aio: report error from io_destroy() when threads race in io_destroy() As reported by Anatol Pomozov, io_destroy() fails to report an error when it loses the race to destroy a given ioctx. Since there is a difference in behaviour between the thread that wins the race (which blocks on outstanding io requests) versus lthe thread that loses (which returns immediately), wire up a return code from kill_ioctx() to the io_destroy() syscall. Signed-off-by: Benjamin LaHaise Cc: Anatol Pomozov --- Reading git-diff-tree failed