]> git.baikalelectronics.ru Git - kernel.git/commit
dm snapshot: change yield to msleep
authorMikulas Patocka <mpatocka@redhat.com>
Tue, 6 Jan 2009 03:04:54 +0000 (03:04 +0000)
committerAlasdair G Kergon <agk@redhat.com>
Tue, 6 Jan 2009 03:04:54 +0000 (03:04 +0000)
commit47358245adb341fbe9439ace2a152ea781cf0fc1
treea6b692b5a7ef777cbd8f2927783f593234b091d1
parent3dd985e20a1958bfaddcadd23a571ca2b0ef3e9d
dm snapshot: change yield to msleep

Change yield() to msleep(1). If the thread had realtime priority,
yield() doesn't really yield, so the yielding process would loop
indefinitely and cause machine lockup.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-snap.c