pnfs: check status of pnfs_file_device_io_unit()
avoids crashing against misconfigured servers Signed-off-by: Casey Bodley <cbodley@citi.umich.edu>
This commit is contained in:
parent
db5e8f9d34
commit
9dcf4021ba
1 changed files with 3 additions and 1 deletions
|
|
@ -147,7 +147,9 @@ static enum pnfs_status thread_next_unit(
|
|||
|
||||
/* loop until we find an io unit that matches this thread */
|
||||
while (thread->offset < thread->offset_end) {
|
||||
pnfs_file_device_io_unit(pattern, thread->offset, io);
|
||||
status = pnfs_file_device_io_unit(pattern, thread->offset, io);
|
||||
if (status)
|
||||
break;
|
||||
|
||||
#ifdef PNFS_THREAD_BY_SERVER
|
||||
if (io->serverid == thread->id) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue