]> git.baikalelectronics.ru Git - kernel.git/commit
staging: lustre: statahead: remove incorrect test on agl_list_empty()
authorNeilBrown <neilb@suse.com>
Thu, 1 Mar 2018 23:31:25 +0000 (10:31 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 6 Mar 2018 12:17:27 +0000 (04:17 -0800)
commit9a4595040c6680deb7ee41a63e84f34eede305a5
tree2179cdbe580e9c3f4cd2ef91e5fdcdee2e608dd6
parenta2ce1a2c9e252fcd679d6a20e3019c38185974cd
staging: lustre: statahead: remove incorrect test on agl_list_empty()

Including agl_list_empty() in the wait_event_idle() condition
is pointless as the body of the loop doesn't do anything
about the agl list.
So if the list wasn't empty, the while loop would spin
indefinitely.

The test was removed in the lustre-release commit
672ab0e00d61 ("LU-3270 statahead: small fixes and cleanup"),
but not in the Linux commit b0d4c955bfda ("staging: lustre:
statahead: small fixes and cleanup").

Fixes: b0d4c955bfda ("staging: lustre: statahead: small fixes and cleanup")
Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/llite/statahead.c