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)
committerAlex Elder <elder@inktank.com>
Thu, 13 Dec 2012 14:13:07 +0000 (08:13 -0600)
commited75ec2cd19b47efcd292b6e23f58e56f4c5bc34
tree570f74b490afdbe623785124ec3186ae5a012d53
parent5e62ad30157d0da04cf40c6d1a2f4bc840948b9c
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>
fs/ceph/mds_client.c