mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-26 18:43:33 -05:00
pnfsblock: set read/write tk_status to pnfs_error
To pass the IO status to upper layer. Signed-off-by: Peng Tao <peng_tao@emc.com> Signed-off-by: Benny Halevy <bhalevy@tonian.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
parent
39e567ae36
commit
82b906d655
1 changed files with 2 additions and 1 deletions
|
@ -216,6 +216,7 @@ bl_end_par_io_read(void *data)
|
|||
{
|
||||
struct nfs_read_data *rdata = data;
|
||||
|
||||
rdata->task.tk_status = rdata->pnfs_error;
|
||||
INIT_WORK(&rdata->task.u.tk_work, bl_read_cleanup);
|
||||
schedule_work(&rdata->task.u.tk_work);
|
||||
}
|
||||
|
@ -405,7 +406,7 @@ static void bl_end_par_io_write(void *data)
|
|||
{
|
||||
struct nfs_write_data *wdata = data;
|
||||
|
||||
wdata->task.tk_status = 0;
|
||||
wdata->task.tk_status = wdata->pnfs_error;
|
||||
wdata->verf.committed = NFS_FILE_SYNC;
|
||||
INIT_WORK(&wdata->task.u.tk_work, bl_write_cleanup);
|
||||
schedule_work(&wdata->task.u.tk_work);
|
||||
|
|
Loading…
Add table
Reference in a new issue