]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
LibrbdWriteback: use a tid_t for tids
authorJosh Durgin <josh.durgin@inktank.com>
Wed, 10 Apr 2013 19:06:36 +0000 (12:06 -0700)
committerJosh Durgin <josh.durgin@inktank.com>
Tue, 23 Apr 2013 18:33:18 +0000 (11:33 -0700)
An int could be much smaller, leading to overflow and bad behavior.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
(cherry picked from commit 9d19961539b2d50d0c9edee1e3d5ac6912a37f24)

src/librbd/LibrbdWriteback.h

index 43a563bbc5f38ed955f5c612c36950408d98deeb..6466a23ce98c9098e6003daf596280ac7b1053ba 100644 (file)
@@ -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;
   };