]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ceph: Fix infinite loop in __wake_requests
authorYan, Zheng <zheng.z.yan@intel.com>
Mon, 19 Nov 2012 02:49:06 +0000 (10:49 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jan 2013 16:51:21 +0000 (08:51 -0800)
commit42d519d12ef2d43a83b86cd2931c539045d07059
tree684fc58b0dfb653ed59707404d96ac476b59e877
parent7ae7b557aaaf1d50f04706b775341957f12bab10
ceph: Fix infinite loop in __wake_requests

__wake_requests() will enter infinite loop if we use it to wake
requests in the session->s_waiting list. __wake_requests() deletes
requests from the list and __do_request() adds requests back to
the list.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Signed-off-by: Sage Weil <sage@inktank.com>
(cherry picked from commit ed75ec2cd19b47efcd292b6e23f58e56f4c5bc34)
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ceph/mds_client.c