• Peng Tao's avatar
    nfs: handle request add failure properly · 0bcbf039
    Peng Tao authored
    When we fail to queue a read page to IO descriptor,
    we need to clean it up otherwise it is hanging around
    preventing nfs module from being removed.
    
    When we fail to queue a write page to IO descriptor,
    we need to clean it up and also save the failure status
    to open context. Then at file close, we can try to write
    pages back again and drop the page if it fails to writeback
    in .launder_page, which will be done in the next patch.
    Signed-off-by: default avatarPeng Tao <tao.peng@primarydata.com>
    Signed-off-by: default avatarTrond Myklebust <trond.myklebust@primarydata.com>
    0bcbf039
read.c 11.5 KB