aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ceph')
-rw-r--r--fs/ceph/file.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/ceph/file.c b/fs/ceph/file.c
index 0f9c4095614b..ae23e31a8f38 100644
--- a/fs/ceph/file.c
+++ b/fs/ceph/file.c
@@ -595,12 +595,6 @@ more:
595 } 595 }
596 596
597 ret = ceph_osdc_wait_request(&fsc->client->osdc, req); 597 ret = ceph_osdc_wait_request(&fsc->client->osdc, req);
598 if (ret < 0 && req->r_safe_callback) {
599 spin_lock(&ci->i_unsafe_lock);
600 list_del_init(&req->r_unsafe_item);
601 spin_unlock(&ci->i_unsafe_lock);
602 ceph_put_cap_refs(ci, CEPH_CAP_FILE_WR);
603 }
604 } 598 }
605 599
606 if (file->f_flags & O_DIRECT) 600 if (file->f_flags & O_DIRECT)