Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 330533
b: refs/heads/master
c: 80c9d03
h: refs/heads/master
i:
  330531: 981a585
v: v3
  • Loading branch information
Chuansheng Liu authored and Anton Vorontsov committed Sep 21, 2012
1 parent de8862c commit 17a1268
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 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: 65f8c95e46a1827ae8bbc52a817ea308dd7d65ae
refs/heads/master: 80c9d03c22f13a17df67b4b99a83ed5e9acf6093
8 changes: 7 additions & 1 deletion trunk/fs/pstore/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,13 @@ static void pstore_console_write(struct console *con, const char *s, unsigned c)

if (c > psinfo->bufsize)
c = psinfo->bufsize;
spin_lock_irqsave(&psinfo->buf_lock, flags);

if (oops_in_progress) {
if (!spin_trylock_irqsave(&psinfo->buf_lock, flags))
break;
} else {
spin_lock_irqsave(&psinfo->buf_lock, flags);
}
memcpy(psinfo->buf, s, c);
psinfo->write(PSTORE_TYPE_CONSOLE, 0, NULL, 0, c, psinfo);
spin_unlock_irqrestore(&psinfo->buf_lock, flags);
Expand Down

0 comments on commit 17a1268

Please sign in to comment.