Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 37658
b: refs/heads/master
c: 3a27111
h: refs/heads/master
v: v3
  • Loading branch information
Rolf Eike Beer authored and Linus Torvalds committed Oct 1, 2006
1 parent 34d3621 commit 2c9064e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9ba0bdfd040b2893bcddfec7165b545d22fc2dc7
refs/heads/master: 3a2711116073db258224afd2cc0f478bdf305575
4 changes: 2 additions & 2 deletions trunk/include/linux/aio.h
Original file line number Diff line number Diff line change
Expand Up @@ -213,11 +213,11 @@ int FASTCALL(io_submit_one(struct kioctx *ctx, struct iocb __user *user_iocb,
struct iocb *iocb));

#define get_ioctx(kioctx) do { \
BUG_ON(unlikely(atomic_read(&(kioctx)->users) <= 0)); \
BUG_ON(atomic_read(&(kioctx)->users) <= 0); \
atomic_inc(&(kioctx)->users); \
} while (0)
#define put_ioctx(kioctx) do { \
BUG_ON(unlikely(atomic_read(&(kioctx)->users) <= 0)); \
BUG_ON(atomic_read(&(kioctx)->users) <= 0); \
if (unlikely(atomic_dec_and_test(&(kioctx)->users))) \
__put_ioctx(kioctx); \
} while (0)
Expand Down

0 comments on commit 2c9064e

Please sign in to comment.