Skip to content

Commit 78a756c

Browse files
author
rockiec
committedNov 21, 2012
CAF:QRD_BSP:SD:None:none:improve FAT performance when use DIRSYNC option
Component Name: SD Feature Name: None Fixed CRs: none Targets: msm8X25_sku5 Required VUs: Dependency Notes: Limitations: Suggested Testing: none Peer Review: Reference Build or VU: Comments: I think it is a obvious mistake,If want sync some data,must give these IO requests a higher priority. (*commit tool - 1.2.3) Change-Id: Ie2225b85d437ad0475d8272a6c456f74d5f0219e
1 parent acf7843 commit 78a756c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎fs/fat/misc.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,10 @@ EXPORT_SYMBOL_GPL(fat_time_unix2fat);
269269
int fat_sync_bhs(struct buffer_head **bhs, int nr_bhs)
270270
{
271271
int i, err = 0;
272-
272+
//It’s an obvious mistake here,the current process will wait until the data be written
273+
//So must give these IO request a higher priority
273274
for (i = 0; i < nr_bhs; i++)
274-
write_dirty_buffer(bhs[i], WRITE);
275+
write_dirty_buffer(bhs[i], WRITE_SYNC);
275276

276277
for (i = 0; i < nr_bhs; i++) {
277278
wait_on_buffer(bhs[i]);

0 commit comments

Comments
 (0)
Please sign in to comment.