Skip to content
Commit 8f2ae0fa authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Linus Torvalds
Browse files

swap: do not send discards as barriers



The swap code already uses synchronous discards, no need to add I/O
barriers.

This fixes the worst of the terrible slowdown in swap allocation for
hibernation, reported on 2.6.35 by Nigel Cunningham; but does not entirely
eliminate that regression.

[tj@kernel.org: superflous newlines removed]
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Tested-by: default avatarNigel Cunningham <nigel@tuxonice.net>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
Signed-off-by: default avatarHugh Dickins <hughd@google.com>
Cc: Jens Axboe <jaxboe@fusionio.com>
Cc: James Bottomley <James.Bottomley@hansenpartnership.com>
Cc: "Martin K. Petersen" <martin.petersen@oracle.com>
Cc: <stable@kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent b73d7fce
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment