We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent acf7843 commit 78a756cCopy full SHA for 78a756c
fs/fat/misc.c
@@ -269,9 +269,10 @@ EXPORT_SYMBOL_GPL(fat_time_unix2fat);
269
int fat_sync_bhs(struct buffer_head **bhs, int nr_bhs)
270
{
271
int i, err = 0;
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
274
for (i = 0; i < nr_bhs; i++)
- write_dirty_buffer(bhs[i], WRITE);
275
+ write_dirty_buffer(bhs[i], WRITE_SYNC);
276
277
for (i = 0; i < nr_bhs; i++) {
278
wait_on_buffer(bhs[i]);
0 commit comments