Skip to content

Commit

Permalink
[XFS] Make xfsbufd threads freezable
Browse files Browse the repository at this point in the history
Fix breakage caused by commit 8314418
that did not introduce the necessary call to set_freezable() in
xfs/linux-2.6/xfs_buf.c .

SGI-PV: 974224
SGI-Modid: xfs-linux-melb:xfs-kern:30203a

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: David Chinner <dgc@sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
  • Loading branch information
Rafael J. Wysocki authored and Lachlan McIlroy committed Dec 10, 2007
1 parent e89bc61 commit 978c7b2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fs/xfs/linux-2.6/xfs_buf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1743,6 +1743,8 @@ xfsbufd(

current->flags |= PF_MEMALLOC;

set_freezable();

do {
if (unlikely(freezing(current))) {
set_bit(XBT_FORCE_SLEEP, &target->bt_flags);
Expand Down

0 comments on commit 978c7b2

Please sign in to comment.