Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

NFS: Fix a list corruption problem

We must remove the request from whatever list it is currently on before we
can add it to the dirty list.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Trond Myklebust and committed by
Linus Torvalds
eb4cac10 0492c371

+3 -1
+3 -1
fs/nfs/write.c
··· 280 280 spin_lock(req_lock); 281 281 } 282 282 spin_unlock(req_lock); 283 - if (nfs_set_page_writeback(page) == 0) 283 + if (nfs_set_page_writeback(page) == 0) { 284 + nfs_list_remove_request(req); 284 285 nfs_mark_request_dirty(req); 286 + } 285 287 ret = test_bit(PG_NEED_FLUSH, &req->wb_flags); 286 288 nfs_unlock_request(req); 287 289 return ret;