dm: correctly handle chained bios in dec_pending()
[linux-2.6-microblaze.git] / drivers / md / dm-ioctl.c
index 3f6791a..a89fd8f 100644 (file)
@@ -1937,7 +1937,7 @@ static __poll_t dm_poll(struct file *filp, poll_table *wait)
        poll_wait(filp, &dm_global_eventq, wait);
 
        if ((int)(atomic_read(&dm_global_event_nr) - priv->global_event_nr) > 0)
-               mask |= POLLIN;
+               mask |= EPOLLIN;
 
        return mask;
 }