Merge pull request #13662 from majianpeng/aio-memset

os/aio: remove the redundant memset(struct iocb)

Reviewed-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2017-03-01 16:28:38 -06:00 committed by GitHub
commit 86f2d14c96
2 changed files with 0 additions and 2 deletions

View File

@ -257,7 +257,6 @@ private:
aio_info(bufferlist& b, uint64_t o, uint64_t s)
: iov(NULL), done(false), off(o), len(b.length()), seq(s) {
bl.claim(b);
memset((void*)&iocb, 0, sizeof(iocb));
}
~aio_info() {
delete[] iov;

View File

@ -65,7 +65,6 @@ public:
boost::intrusive::list_member_hook<> queue_item;
aio_t(void *p, int f) : priv(p), fd(f), offset(0), length(0), rval(-1000) {
memset(&iocb, 0, sizeof(iocb));
}
void pwritev(uint64_t _offset, uint64_t len) {