Whamcloud - gitweb
added a comment wrt unaligned dio and write grants
authoranserper <anserper>
Sat, 1 Aug 2009 16:49:50 +0000 (16:49 +0000)
committeranserper <anserper>
Sat, 1 Aug 2009 16:49:50 +0000 (16:49 +0000)
lustre/osc/osc_request.c

index 1afeb13..f72b082 100644 (file)
@@ -1641,7 +1641,7 @@ static int async_internal(int cmd, struct obd_export *exp, struct obdo *oa,
 
         /* Consume write credits even if doing a sync write -
          * otherwise we may run out of space on OST due to grant. */
-        /* Badly aligned writes are not subject to write granting */
+        /* FIXME: unaligned writes must use write grants too */
         if (cmd == OBD_BRW_WRITE && pshift == 0) {
                 client_obd_list_lock(&cli->cl_loi_list_lock);
                 for (i = 0; i < page_count; i++) {