Asynchronous mode for tur checker
authorHannes Reinecke <hare@suse.de>
Tue, 3 May 2011 08:30:47 +0000 (10:30 +0200)
committerHannes Reinecke <hare@suse.de>
Tue, 3 May 2011 08:30:47 +0000 (10:30 +0200)
commitdc6fdadb62a7aefa92a6871e0ede995607a9e0ca
tree813ec22360a58612f40d4a4f1f4c45025dc22cca
parent54496a355dde75fbd1069a8fc0fe274b4a68a079
Asynchronous mode for tur checker

When a path is going down I/O will stall until the underlying
device becomes unblocked. This will stall the entire checker loop
and cause severe delays.
This patch implements an asynchronous mode for the 'TUR' checker,
whereby the actual ioctl is executed in its own thread. The
checkerloop then just examines the state of this separate thread
and can continue even if the ioctl is blocked.

Signed-off-by: Hannes Reinecke <hare@suse.de>
libmultipath/checkers/tur.c