• Home
  • Raw
  • Download

Lines Matching refs:aio_req

1072 			      struct ceph_aio_request *aio_req)  in ceph_aio_complete()  argument
1077 if (!atomic_dec_and_test(&aio_req->pending_reqs)) in ceph_aio_complete()
1080 if (aio_req->iocb->ki_flags & IOCB_DIRECT) in ceph_aio_complete()
1083 ret = aio_req->error; in ceph_aio_complete()
1085 ret = aio_req->total_len; in ceph_aio_complete()
1089 if (ret >= 0 && aio_req->write) { in ceph_aio_complete()
1092 loff_t endoff = aio_req->iocb->ki_pos + aio_req->total_len; in ceph_aio_complete()
1100 &aio_req->prealloc_cf); in ceph_aio_complete()
1107 ceph_put_cap_refs(ci, (aio_req->write ? CEPH_CAP_FILE_WR : in ceph_aio_complete()
1110 aio_req->iocb->ki_complete(aio_req->iocb, ret); in ceph_aio_complete()
1112 ceph_free_cap_flush(aio_req->prealloc_cf); in ceph_aio_complete()
1113 kfree(aio_req); in ceph_aio_complete()
1120 struct ceph_aio_request *aio_req = req->r_priv; in ceph_aio_complete_req() local
1132 BUG_ON(!aio_req->write); in ceph_aio_complete_req()
1143 } else if (!aio_req->write) { in ceph_aio_complete_req()
1155 if (aio_req->num_reqs == 1) { in ceph_aio_complete_req()
1157 loff_t endoff = aio_req->iocb->ki_pos + rc; in ceph_aio_complete_req()
1161 aio_req->total_len = rc + zlen; in ceph_aio_complete_req()
1173 if (aio_req->write) in ceph_aio_complete_req()
1182 aio_req->should_dirty); in ceph_aio_complete_req()
1186 cmpxchg(&aio_req->error, 0, rc); in ceph_aio_complete_req()
1188 ceph_aio_complete(inode, aio_req); in ceph_aio_complete_req()
1197 struct ceph_aio_request *aio_req = orig_req->r_priv; in ceph_aio_retry_work() local
1231 req->r_mtime = aio_req->mtime; in ceph_aio_retry_work()
1245 req->r_priv = aio_req; in ceph_aio_retry_work()
1271 struct ceph_aio_request *aio_req = NULL; in ceph_direct_read_write() local
1343 aio_req = kzalloc(sizeof(*aio_req), GFP_KERNEL); in ceph_direct_read_write()
1344 if (aio_req) { in ceph_direct_read_write()
1345 aio_req->iocb = iocb; in ceph_direct_read_write()
1346 aio_req->write = write; in ceph_direct_read_write()
1347 aio_req->should_dirty = should_dirty; in ceph_direct_read_write()
1348 INIT_LIST_HEAD(&aio_req->osd_reqs); in ceph_direct_read_write()
1350 aio_req->mtime = mtime; in ceph_direct_read_write()
1351 swap(aio_req->prealloc_cf, *pcf); in ceph_direct_read_write()
1370 if (aio_req) { in ceph_direct_read_write()
1371 aio_req->total_len += len; in ceph_direct_read_write()
1372 aio_req->num_reqs++; in ceph_direct_read_write()
1373 atomic_inc(&aio_req->pending_reqs); in ceph_direct_read_write()
1377 req->r_priv = aio_req; in ceph_direct_read_write()
1378 list_add_tail(&req->r_private_item, &aio_req->osd_reqs); in ceph_direct_read_write()
1429 if (aio_req) { in ceph_direct_read_write()
1432 if (aio_req->num_reqs == 0) { in ceph_direct_read_write()
1433 kfree(aio_req); in ceph_direct_read_write()
1440 list_splice(&aio_req->osd_reqs, &osd_reqs); in ceph_direct_read_write()