]> 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:46:49 +0000 (08:46 -0800)
commitbd604499e4a60e5e5c279ef1b9b83cd21d614d7c
treeb5618db814c79c9be8efd69d2055e45f36ddbd2d
parent4899444757a896e3d38650e8fe11b50e2eecc88f
ceph: Fix infinite loop in __wake_requests

(cherry picked from commit ed75ec2cd19b47efcd292b6e23f58e56f4c5bc34)

__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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ceph/mds_client.c