Give g_mirror_event_get() a more accurate name.
MFC after: 1 week Sponsored by: Dell EMC Isilon
This commit is contained in:
parent
fd47853c2a
commit
1f07d15939
@ -219,7 +219,7 @@ g_mirror_event_send(void *arg, int state, int flags)
|
||||
}
|
||||
|
||||
static struct g_mirror_event *
|
||||
g_mirror_event_get(struct g_mirror_softc *sc)
|
||||
g_mirror_event_first(struct g_mirror_softc *sc)
|
||||
{
|
||||
struct g_mirror_event *ep;
|
||||
|
||||
@ -555,7 +555,7 @@ g_mirror_destroy_device(struct g_mirror_softc *sc)
|
||||
g_mirror_update_metadata(disk);
|
||||
g_mirror_destroy_disk(disk);
|
||||
}
|
||||
while ((ep = g_mirror_event_get(sc)) != NULL) {
|
||||
while ((ep = g_mirror_event_first(sc)) != NULL) {
|
||||
g_mirror_event_remove(sc, ep);
|
||||
if ((ep->e_flags & G_MIRROR_EVENT_DONTWAIT) != 0)
|
||||
g_mirror_event_free(ep);
|
||||
@ -1877,7 +1877,7 @@ g_mirror_worker(void *arg)
|
||||
* First take a look at events.
|
||||
* This is important to handle events before any I/O requests.
|
||||
*/
|
||||
ep = g_mirror_event_get(sc);
|
||||
ep = g_mirror_event_first(sc);
|
||||
if (ep != NULL) {
|
||||
g_mirror_event_remove(sc, ep);
|
||||
if ((ep->e_flags & G_MIRROR_EVENT_DEVICE) != 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user