summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Morton <akpm@digeo.com>2003-02-05 00:34:08 -0800
committerGreg Kroah-Hartman <greg@kroah.com>2003-02-05 00:34:08 -0800
commit7d5bea384ce13d3f435ec587e5b96a5324b16fd3 (patch)
treef86a883f462a870c48f863b39d2bdd4fd7653564
parentf3812c2af37c75913a9971fe7944c0c0ce50e9c5 (diff)
[PATCH] seqlock fix: read_seqretry_irqrestore()
-rw-r--r--include/linux/seqlock.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/seqlock.h b/include/linux/seqlock.h
index 2660cf7634c1..f1a059f6de9b 100644
--- a/include/linux/seqlock.h
+++ b/include/linux/seqlock.h
@@ -115,7 +115,8 @@ static inline int read_seqretry(const seqlock_t *sl, unsigned iv)
({ local_irq_save(flags); read_seqbegin(lock); })
#define read_seqretry_irqrestore(lock, iv, flags) \
- ({int ret = read_seqretry(&(lock)->seq, iv); \
+ ({ \
+ int ret = read_seqretry(lock, iv); \
local_irq_restore(flags); \
ret; \
})