]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
libata: increase the timeout when setting transfer mode
authorMikulas Patocka <mpatocka@redhat.com>
Wed, 8 Jul 2015 17:06:12 +0000 (13:06 -0400)
committerWilly Tarreau <w@1wt.eu>
Fri, 18 Sep 2015 11:52:17 +0000 (13:52 +0200)
commit6f3539b43391809847326d157378609310c2a180
tree7118427b7836f8eb6bf1e5d5ce187642b9d46823
parent13ae66d58fb92603de95f6cc8ac2e62cec3c59c4
libata: increase the timeout when setting transfer mode

commit d531be2ca2f27cca5f041b6a140504999144a617 upstream.

I have a ST4000DM000 disk. If Linux is booted while the disk is spun down,
the command that sets transfer mode causes the disk to spin up. The
spin-up takes longer than the default 5s timeout, so the command fails and
timeout is reported.

Fix this by increasing the timeout to 15s, which is enough for the disk to
spin up.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
(cherry picked from commit d6ded32444c070ce41ad0d64fce8957d18009d72)

Signed-off-by: Willy Tarreau <w@1wt.eu>
drivers/ata/libata-core.c