From: Luca Giuzzi Date: Tue, 4 Oct 2011 17:35:06 +0000 (-0400) Subject: rpc.idmapd: Dies with 'I/O possible' X-Git-Tag: nfs-utils-1-2-6-rc2~1 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=8f065a26d49eabebc3995b8f6966b15ef7553b3e;p=nfs-utils.git rpc.idmapd: Dies with 'I/O possible' We have had problems on some of our machines (all Fedora 14), where rpc.idmapd used to die with an `I/O possible' message at (basically) random times. A strace suggested the issue being in nfsopen() where a signal type is reset before notification is disabled; a signal at just the right time might be the cause of the problem; see https://bugzilla.redhat.com/show_bug.cgi?id=684308 Reviewed-by: Jeff Layton Signed-off-by: Steve Dickson --- diff --git a/utils/idmapd/idmapd.c b/utils/idmapd/idmapd.c index 19d9114..e80efb4 100644 --- a/utils/idmapd/idmapd.c +++ b/utils/idmapd/idmapd.c @@ -778,8 +778,8 @@ nfsopen(struct idmap_client *ic) } else { event_set(&ic->ic_event, ic->ic_fd, EV_READ, nfscb, ic); event_add(&ic->ic_event, NULL); - fcntl(ic->ic_dirfd, F_SETSIG, 0); fcntl(ic->ic_dirfd, F_NOTIFY, 0); + fcntl(ic->ic_dirfd, F_SETSIG, 0); if (verbose > 0) xlog_warn("Opened %s", ic->ic_path); }