summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Durgin <josh.durgin@inktank.com>2013-04-10 12:06:36 -0700
committerJosh Durgin <josh.durgin@inktank.com>2013-04-10 12:06:36 -0700
commit9d19961539b2d50d0c9edee1e3d5ac6912a37f24 (patch)
tree0ad61722669c88d93bfaca8f552676180f866f5c
parent870f9cd421ca7b0094f9f89e13b1898a8302c494 (diff)
downloadceph-9d19961539b2d50d0c9edee1e3d5ac6912a37f24.tar.gz
LibrbdWriteback: use a tid_t for tids
An int could be much smaller, leading to overflow and bad behavior. Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
-rw-r--r--src/librbd/LibrbdWriteback.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librbd/LibrbdWriteback.h b/src/librbd/LibrbdWriteback.h
index 43a563bbc5f..6466a23ce98 100644
--- a/src/librbd/LibrbdWriteback.h
+++ b/src/librbd/LibrbdWriteback.h
@@ -36,7 +36,7 @@ namespace librbd {
__u32 trunc_seq, Context *oncommit);
private:
- int m_tid;
+ tid_t m_tid;
Mutex& m_lock;
librbd::ImageCtx *m_ictx;
};