orangefs: use list_for_each_entry_safe in purge_waiting_ops
authorMartin Brandenburg <martin@omnibond.com>
Mon, 22 Jan 2018 20:44:51 +0000 (15:44 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Jan 2018 13:03:40 +0000 (14:03 +0100)
commit1d00dacda89dca83b9899fe3ed1588b08bdd4b88
treec5a56844e36ba2e9c58e2472bcb84a9b1010ea81
parenta16134b082346b7e7c34f594a0763eafacdcea92
orangefs: use list_for_each_entry_safe in purge_waiting_ops

commit 0afc0decf247f65b7aba666a76a0a68adf4bc435 upstream.

set_op_state_purged can delete the op.

Signed-off-by: Martin Brandenburg <martin@omnibond.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/orangefs/waitqueue.c