Search
j0ke.net Open Build Service
>
Projects
>
GFS
>
multipath-tools
> multipath-tools-ignore-map-offline-events
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File multipath-tools-ignore-map-offline-events of Package multipath-tools
tree 0ba1410678dc970dafa8f630ccbd2c19216259e6 parent 86131cf08118632fb632a6d596f384b1a128e673 author Hannes Reinecke <hare@suse.de> 1177055168 +0200 committer Hannes Reinecke <hare@suse.de> 1177055168 +0200 [multipathd] Ignore map offline events 'offline' events do not carry any useful information. Plus there might be quite a few of them which can race with the 'remove' event. So we're better ignore it. Signed-off-by: Stefan Bader <bader@de.ibm.com> Signed-off-by: Hannes Reinecke <hare@suse.de> d7df5f6c1aa4b560638a62347abf56a212e32429 multipathd/main.c | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/multipathd/main.c b/multipathd/main.c index 1614f52..586a200 100644 --- a/multipathd/main.c +++ b/multipathd/main.c @@ -648,19 +648,18 @@ uev_trigger (struct uevent * uev, void * lock(vecs->lock); /* - * Device map online/offline event. + * Device map events. * Add/Remove events are ignored here as they * lead to races with device-mapper. + * Offline events are ignored, too. + * Device-mapper generated tons of them and + * they don't carry additional information. */ if (!strncmp(devname, "dm-", 3)) { if (!strncmp(uev->action, "online", 6)) { r = uev_add_map(devname, vecs); goto out; } - if (!strncmp(uev->action, "offline", 7)) { - r = uev_remove_map(devname, vecs); - goto out; - } if (!strncmp(uev->action, "remove", 6)) { r = uev_remove_map(devname, vecs); goto out;