]> www.infradead.org Git - users/jedix/linux-maple.git/commit
epoll: clear the tfile_check_list on -ELOOP
authorGuangyu Sun <guangyu.sun@oracle.com>
Wed, 11 Jul 2012 01:48:04 +0000 (18:48 -0700)
committerGuangyu Sun <guangyu.sun@oracle.com>
Wed, 11 Jul 2012 01:48:04 +0000 (18:48 -0700)
commit75eed989d6aa628deeac44fb3d674fde5ebdfc63
tree106042e46d492ae6fb87e61ef2f2ca3449b9e5ca
parentf735861d867960ab37e05f4c5d1e4c4f37c80980
epoll: clear the tfile_check_list on -ELOOP

Orabug: 14306496
upstream commit: 13d518074a952d33d47c428419693f63389547e9

An epoll_ctl(,EPOLL_CTL_ADD,,) operation can return '-ELOOP' to prevent
circular epoll dependencies from being created.  However, in that case we
do not properly clear the 'tfile_check_list'.  Thus, add a call to
clear_tfile_check_list() for the -ELOOP case.

Signed-off-by: Jason Baron <jbaron@redhat.com>
Reported-by: Yurij M. Plotnikov <Yurij.Plotnikov@oktetlabs.ru>
Cc: Nelson Elhage <nelhage@nelhage.com>
Cc: Davide Libenzi <davidel@xmailserver.org>
Tested-by: Alexandra N. Kossovsky <Alexandra.Kossovsky@oktetlabs.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Guangyu Sun <guangyu.sun@oracle.com>
fs/eventpoll.c