summaryrefslogtreecommitdiffstats
path: root/xlators/performance/io-threads
diff options
context:
space:
mode:
authorPoornima G <pgurusid@redhat.com>2017-11-18 15:51:43 +0530
committerPoornima G <pgurusid@redhat.com>2018-02-12 13:57:00 +0530
commitbfb66cc535ce473afa7e330800d2d2c38afe42c9 (patch)
tree90fc8c922063a81c682c42eea1dfce25e85b7cd9 /xlators/performance/io-threads
parent535fd517c6b188732f9d69c0301dd78c3dc3d09c (diff)
io-threads: Implement put fop
Updates #353 Change-Id: I8a30b53a52618c6a6c740d2c67b19e5322ce4ddb Signed-off-by: Poornima G <pgurusid@redhat.com>
Diffstat (limited to 'xlators/performance/io-threads')
-rw-r--r--xlators/performance/io-threads/src/io-threads.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/xlators/performance/io-threads/src/io-threads.c b/xlators/performance/io-threads/src/io-threads.c
index a5a9543ae39..501e4019e90 100644
--- a/xlators/performance/io-threads/src/io-threads.c
+++ b/xlators/performance/io-threads/src/io-threads.c
@@ -331,6 +331,7 @@ iot_schedule (call_frame_t *frame, xlator_t *this, call_stub_t *stub)
case GF_FOP_FSETXATTR:
case GF_FOP_REMOVEXATTR:
case GF_FOP_FREMOVEXATTR:
+ case GF_FOP_PUT:
pri = GF_FOP_PRI_NORMAL;
break;
@@ -472,6 +473,17 @@ iot_create (call_frame_t *frame, xlator_t *this, loc_t *loc, int32_t flags,
int
+iot_put (call_frame_t *frame, xlator_t *this, loc_t *loc, mode_t mode,
+ mode_t umask, uint32_t flags, struct iovec *vector, int32_t count,
+ off_t offset, struct iobref *iobref, dict_t *xattr, dict_t *xdata)
+{
+ IOT_FOP (put, frame, this, loc, mode, umask, flags, vector, count,
+ offset, iobref, xattr, xdata);
+ return 0;
+}
+
+
+int
iot_readv (call_frame_t *frame, xlator_t *this, fd_t *fd, size_t size,
off_t offset, uint32_t flags, dict_t *xdata)
{
@@ -1222,6 +1234,7 @@ struct xlator_fops fops = {
.lease = iot_lease,
.getactivelk = iot_getactivelk,
.setactivelk = iot_setactivelk,
+ .put = iot_put,
};
struct xlator_cbks cbks = {