diff options
| author | Andrew Morton <akpm@digeo.com> | 2003-02-05 00:34:08 -0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <greg@kroah.com> | 2003-02-05 00:34:08 -0800 |
| commit | 7d5bea384ce13d3f435ec587e5b96a5324b16fd3 (patch) | |
| tree | f86a883f462a870c48f863b39d2bdd4fd7653564 | |
| parent | f3812c2af37c75913a9971fe7944c0c0ce50e9c5 (diff) | |
[PATCH] seqlock fix: read_seqretry_irqrestore()
| -rw-r--r-- | include/linux/seqlock.h | 3 |
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; \ }) |
