|
@@ -612,7 +612,7 @@ static unsigned long bch_mca_scan(struct shrinker *shrink,
|
|
return SHRINK_STOP;
|
|
return SHRINK_STOP;
|
|
|
|
|
|
/* Return -1 if we can't do anything right now */
|
|
/* Return -1 if we can't do anything right now */
|
|
- if (sc->gfp_mask & __GFP_WAIT)
|
|
|
|
|
|
+ if (sc->gfp_mask & __GFP_IO)
|
|
mutex_lock(&c->bucket_lock);
|
|
mutex_lock(&c->bucket_lock);
|
|
else if (!mutex_trylock(&c->bucket_lock))
|
|
else if (!mutex_trylock(&c->bucket_lock))
|
|
return -1;
|
|
return -1;
|