Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

libata: only ports >= 0 need to synchronize

In a discussio with Jeff Garzik, he mentioned that the serialization
for the libata port probes only needs to be within the domain of a host.
This means that for the first port of each host (with ID 0), we don't
need to wait, so we can relax our serialization a little.

Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Arjan van de Ven and committed by
Linus Torvalds
fa853a48 886ad09f

+3 -1
+3 -1
drivers/ata/libata-core.c
··· 5925 5925 * If we're not allowed to scan this host in parallel, 5926 5926 * we need to wait until all previous scans have completed 5927 5927 * before going further. 5928 + * Jeff Garzik says this is only within a controller, so we 5929 + * don't need to wait for port 0, only for later ports. 5928 5930 */ 5929 - if (!(ap->host->flags & ATA_HOST_PARALLEL_SCAN)) 5931 + if (!(ap->host->flags & ATA_HOST_PARALLEL_SCAN) && ap->port_no != 0) 5930 5932 async_synchronize_cookie(cookie); 5931 5933 5932 5934 /* probe */