linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] dmsetup hangs forever
@ 2017-10-26  8:07 Zhangyanfei (YF)
  2017-10-26  8:39 ` [linux-lvm] [dm-devel] " Zdenek Kabelac
  0 siblings, 1 reply; 4+ messages in thread
From: Zhangyanfei (YF) @ 2017-10-26  8:07 UTC (permalink / raw)
  To: agk, christophe.varoqui
  Cc: dm-devel, guijianfeng, Zhangyanfei (YF), Fengtiantian, linux-lvm

[-- Attachment #1: Type: text/plain, Size: 792 bytes --]

Hello

I find an issue when use  dmsetup in the situation udev event timeout.

Dmsetup use the dm_udev_wait function sync with udev event.When use the dmsetup generate a new dm-disk, if the raw disk is abnormal(for example ,a ipsan disk hung IO request), the udevd daemon handle the dm-disk udev event maybe timeout, and will not notify the dmsetup  by semaphore. And because the  dm_udev_wait use the semop to sync with udevd, if udevd event timeout, the dmsetup will hung forever even when the raw disk be recovery.

I wonder if we could use the semtimedop instead semop to add the timeout in function  dm_udev_wait. If the udevd daemon timeout when handle the dm event, the dm_udev_wait could timeout too, and the dmsetup could return error.

This is my patch base lvm2-2.02.115-3:

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-10-27 12:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-26  8:07 [linux-lvm] dmsetup hangs forever Zhangyanfei (YF)
2017-10-26  8:39 ` [linux-lvm] [dm-devel] " Zdenek Kabelac
2017-10-27  8:00   ` [linux-lvm] 答复: " Zhangyanfei (YF)
2017-10-27 12:28     ` Zdenek Kabelac

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).