If READ from the local node failed we send the request to the remote

node. There is no use in doing this for synchronization requests.

Approved by:	pjd (mentor)
MFC after:	1 week
This commit is contained in:
Mikolaj Golub 2011-05-29 21:20:47 +00:00
parent b37ce15446
commit a01a750f32
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=222467

View File

@ -1243,7 +1243,7 @@ local_send_thread(void *arg)
ggio->gctl_offset + res->hr_localoff);
if (ret == ggio->gctl_length)
hio->hio_errors[ncomp] = 0;
else {
else if (!ISSYNCREQ(hio)) {
/*
* If READ failed, try to read from remote node.
*/