diff mbox

[2/2] ceph: add request to the tail of unsafe write list

Message ID 1300180682-18749-2-git-send-email-henry_c_chang@tcloudcomputing.com (mailing list archive)
State New, archived
Headers show

Commit Message

Henry Chang March 15, 2011, 9:18 a.m. UTC
None
diff mbox

Patch

diff --git a/fs/ceph/file.c b/fs/ceph/file.c
index db5d863..bc09e72 100644
--- a/fs/ceph/file.c
+++ b/fs/ceph/file.c
@@ -564,7 +564,7 @@  more:
 			 * start_request so that a tid has been assigned.
 			 */
 			spin_lock(&ci->i_unsafe_lock);
-			list_add(&req->r_unsafe_item, &ci->i_unsafe_writes);
+			list_add_tail(&req->r_unsafe_item, &ci->i_unsafe_writes);
 			spin_unlock(&ci->i_unsafe_lock);
 			ceph_get_cap_refs(ci, CEPH_CAP_FILE_WR);
 		}