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:
Casey Bodley 2010-10-07 13:21:26 -04:00
parent db5e8f9d34
commit 9dcf4021ba

View file

@ -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) {