mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
ceph: add request to the tail of unsafe write list
In sync_write_wait(), we assume that the newest request is at the tail of unsafe write list. We should maintain the semantics here. Signed-off-by: Henry C Chang <[email protected]> Signed-off-by: Sage Weil <[email protected]>
This commit is contained in:
parent
78a255654f
commit
49bcb93236
1 changed files with 2 additions and 1 deletions
|
|
@ -564,7 +564,8 @@ 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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue