Commit a587d71b authored by Yan, Zheng's avatar Yan, Zheng Committed by Ilya Dryomov
Browse files

ceph: remove useless BUG_ON



ceph_osdc_start_request() never return -EOLDSNAP
Signed-off-by: default avatarYan, Zheng <zyan@redhat.com>
parent 133e9156
...@@ -725,7 +725,6 @@ static void ceph_aio_retry_work(struct work_struct *work) ...@@ -725,7 +725,6 @@ static void ceph_aio_retry_work(struct work_struct *work)
ret = ceph_osdc_start_request(req->r_osdc, req, false); ret = ceph_osdc_start_request(req->r_osdc, req, false);
out: out:
if (ret < 0) { if (ret < 0) {
BUG_ON(ret == -EOLDSNAPC);
req->r_result = ret; req->r_result = ret;
ceph_aio_complete_req(req, NULL); ceph_aio_complete_req(req, NULL);
} }
...@@ -949,7 +948,6 @@ ceph_direct_read_write(struct kiocb *iocb, struct iov_iter *iter, ...@@ -949,7 +948,6 @@ ceph_direct_read_write(struct kiocb *iocb, struct iov_iter *iter,
ret = ceph_osdc_start_request(req->r_osdc, ret = ceph_osdc_start_request(req->r_osdc,
req, false); req, false);
if (ret < 0) { if (ret < 0) {
BUG_ON(ret == -EOLDSNAPC);
req->r_result = ret; req->r_result = ret;
ceph_aio_complete_req(req, NULL); ceph_aio_complete_req(req, NULL);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment