]> git.hungrycats.org Git - linux/commitdiff
[XFS] IRIX sets KM_SLEEP to 0 but the support routines sets KM_SLEEP to 1.
authorRussell Cattelan <cattelan@sgi.com>
Mon, 15 Sep 2003 08:03:45 +0000 (03:03 -0500)
committerStephen Lord <lord@kernel.bkbits.net>
Mon, 15 Sep 2003 08:03:45 +0000 (03:03 -0500)
So somebodys shortcut on irix is incorrect on linux and results in the sleep
behaviour not being set.

SGI Modid: 2.5.x-xfs:slinx:157773a

fs/xfs/xfs_log.c
fs/xfs/xfs_log_recover.c

index 94fad28847014b36608f89c13bb12b3f16048f2a..2040f441050e9b27fbc773e8af865f360fca62a7 100644 (file)
@@ -3128,7 +3128,7 @@ xlog_state_ticket_alloc(xlog_t *log)
         * The kmem_zalloc may sleep, so we shouldn't be holding the
         * global lock.  XXXmiken: may want to use zone allocator.
         */
-       buf = (xfs_caddr_t) kmem_zalloc(NBPP, 0);
+       buf = (xfs_caddr_t) kmem_zalloc(NBPP, KM_SLEEP);
 
        s = LOG_LOCK(log);
 
index 1909995fdd4986f8cd97eaae296c5e551cc26aae..aa1fb205b69996c72df5bb5532f8e2cfcaefc354 100644 (file)
@@ -1359,7 +1359,7 @@ xlog_recover_add_item(
 {
        xlog_recover_item_t     *item;
 
-       item = kmem_zalloc(sizeof(xlog_recover_item_t), 0);
+       item = kmem_zalloc(sizeof(xlog_recover_item_t), KM_SLEEP);
        xlog_recover_insert_item_backq(itemq, item);
 }
 
@@ -1443,7 +1443,7 @@ xlog_recover_add_to_trans(
                item->ri_total  = in_f->ilf_size;
                ASSERT(item->ri_total <= XLOG_MAX_REGIONS_IN_ITEM);
                item->ri_buf = kmem_zalloc((item->ri_total *
-                                           sizeof(xfs_log_iovec_t)), 0);
+                                           sizeof(xfs_log_iovec_t)), KM_SLEEP);
        }
        ASSERT(item->ri_total > item->ri_cnt);
        /* Description region is ri_buf[0] */